Exemple #1
0
        public void SingleArg()
        {
            Parser <string> singleArgumentParser = new SingleArg();

            // command line: foo.txt
            var argument = singleArgumentParser.AssumeGoodParse("foo.txt");

            Console.WriteLine($"argument is: {argument}");
            argument.Should().Be("foo.txt"); /* hide */
        }
Exemple #2
0
 public void SingleArgTutorial()
 {
     Parser <string> singleArgumentParser = new SingleArg(
         friendlyName: "my-one-arg",
         documentation: "a single argument will be parsed");
 }