Exemple #1
0
            public void SetupContext()
            {
                Parser = new SwitchParser <TestConfigSettings>();
                Parser.AddSwitch("--foo", "-f")
                .SetsField(x => x.Foo)
                .WithDescription("FooDescription");

                Usage = Parser.GetUsage();
            }
            public void SetupContext()
            {
                Parser = new SwitchParser<TestConfigSettings>();
                Parser.AddSwitch("--foo", "-f")
                    .SetsField(x => x.Foo)
                    .WithDescription("FooDescription");

                Usage = Parser.GetUsage();
            }
Exemple #3
0
 public string GetUsage()
 {
     return(SwitchParser.GetUsage());
 }