示例#1
0
 private OptionSpecification MakeHelpEntry()
 {
     return(OptionSpecification.NewSwitch(
                string.Empty,
                "help",
                false,
                sentenceBuilder.HelpCommandText(AddDashesToOption),
                string.Empty));
 }
示例#2
0
 private OptionSpecification MakeVersionEntry()
 {
     return(OptionSpecification.NewSwitch(
                string.Empty,
                "version",
                false,
                sentenceBuilder.VersionCommandText(AddDashesToOption),
                string.Empty));
 }
示例#3
0
 private IEnumerable <Specification> AdaptVerbsToSpecifications(IEnumerable <Type> types)
 {
     return((from verbTuple in Verb.SelectFromTypes(types)
             select
             OptionSpecification.NewSwitch(
                 string.Empty,
                 verbTuple.Item1.Name,
                 false,
                 verbTuple.Item1.HelpText,
                 string.Empty)).Concat(new[] { MakeHelpEntry(), MakeVersionEntry() }));
 }