[Option('b', "before", SetName="SingleExample", Required=true, HelpText="An example of an input line before transformation")]
publicStringbefore { get; set; }
[Option('a', "after", SetName="SingleExample", Required=true, HelpText="An example of an output line after transformation")]
publicStringafter { get; set; }
// HelpText="Performs string manipulation tasks by learning from the provided example(s), instead of having to program them out explicitly.
classOptions
{
[Option('b', "before", SetName="SingleExample", Required=true, HelpText="An example of an input line before transformation")]
publicStringbefore { get; set; }
[Option('a', "after", SetName="SingleExample", Required=true, HelpText="An example of an output line after transformation")]
publicStringafter { get; set; }
[Option('f', "example-file", SetName="MultiExample", Required=true, HelpText="A file containing one or multiple transformation examples. The before and after transfer string are separated by => on the same line. One line per example.")]
publicStringexampleFile { get; set; }
[Option('f', "example-file", SetName="MultiExample", Required=true, HelpText="A file containing one or multiple transformation examples. The before and after transfer string are separated by => on the same line. One line per example.")]
publicStringmultiFile { get; set; }
[Usage(ApplicationAlias="strans")]
publicstaticIEnumerable<Example> Examples
{
get
{
yieldreturnnewExample("Standard usage where strans infers a string transformation rule from one example, extracting the file extension from the input on STDIN (for example, from ls)", newOptions { before="file.bin", after="bin" });
yieldreturnnewExample("Usage with multiple examples to infer string transformation rules stored in file examples. Syntax in example is one transformation example per line as before => after", newOptions { exampleFile="examples" });
0 comments on commit
514d398