public Configuration(CommandLineOptions options) { this.Main = (args) => SearchFiles.Main(args); this.Name = "search-files"; this.Description = FromResource("Description"); this.ExtendedHelpText = FromResource("ExtendedHelpText"); this.IndexDirectoryArgument = new IndexDirectoryArgument(required: true); this.Arguments.Add(IndexDirectoryArgument); this.FieldOption = this.Option( "-f|--field <FIELD>", FromResource("FieldDescription"), CommandOptionType.SingleValue); this.RepeatOption = this.Option( "-r|--repeat <NUMBER>", FromResource("RepeatDescription"), CommandOptionType.SingleValue); this.QueriesFileOption = this.Option( "-qf|--queries-file <PATH>", FromResource("QueriesFileDescription"), CommandOptionType.SingleValue); this.QueryOption = this.Option( "-q|--query <QUERY>", FromResource("QueryDescription"), CommandOptionType.SingleValue); this.RawOption = this.Option( "--raw", FromResource("RawDescription"), CommandOptionType.NoValue); this.PageSizeOption = this.Option( "-p|--page-size <NUMBER>", FromResource("PageSizeDescription"), CommandOptionType.SingleValue); this.OnExecute(() => new DemoSearchFilesCommand().Run(this)); }