private OptionSpecification MakeHelpEntry() { return(OptionSpecification.NewSwitch( string.Empty, "help", false, sentenceBuilder.HelpCommandText(AddDashesToOption), string.Empty)); }
private OptionSpecification MakeVersionEntry() { return(OptionSpecification.NewSwitch( string.Empty, "version", false, sentenceBuilder.VersionCommandText(AddDashesToOption), string.Empty)); }
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() })); }