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 */ }
public void SingleArgTutorial() { Parser <string> singleArgumentParser = new SingleArg( friendlyName: "my-one-arg", documentation: "a single argument will be parsed"); }