Exemple #1
0
        /// <summary>Build command-line options and descriptions</summary>
        private static Options BuildOptions()
        {
            Options options = new Options();

            // Build in/output file arguments, which are required, but there is no
            // addOption method that can specify this
            OptionBuilder.IsRequired();
            OptionBuilder.HasArgs();
            OptionBuilder.WithLongOpt("inputFile");
            options.AddOption(OptionBuilder.Create("i"));
            options.AddOption("o", "outputFile", true, string.Empty);
            options.AddOption("p", "processor", true, string.Empty);
            options.AddOption("h", "help", false, string.Empty);
            options.AddOption("maxSize", true, string.Empty);
            options.AddOption("step", true, string.Empty);
            options.AddOption("addr", true, string.Empty);
            options.AddOption("delimiter", true, string.Empty);
            options.AddOption("t", "temp", true, string.Empty);
            return(options);
        }
        /// <summary>Build command-line options and descriptions</summary>
        /// <returns>command line options</returns>
        public static Options BuildOptions()
        {
            Options options = new Options();

            // Build in/output file arguments, which are required, but there is no
            // addOption method that can specify this
            OptionBuilder.IsRequired();
            OptionBuilder.HasArgs();
            OptionBuilder.WithLongOpt("outputFilename");
            options.AddOption(OptionBuilder.Create("o"));
            OptionBuilder.IsRequired();
            OptionBuilder.HasArgs();
            OptionBuilder.WithLongOpt("inputFilename");
            options.AddOption(OptionBuilder.Create("i"));
            options.AddOption("p", "processor", true, string.Empty);
            options.AddOption("v", "verbose", false, string.Empty);
            options.AddOption("f", "fix-txids", false, string.Empty);
            options.AddOption("r", "recover", false, string.Empty);
            options.AddOption("h", "help", false, string.Empty);
            return(options);
        }