예제 #1
0
 /// <summary>
 /// Create a new fluent interface to add command line parser options.
 /// </summary>
 /// <param name="ShortOption">The short option.</param>
 /// <param name="CommandLineParser">The command line parser.</param>
 public CommandLineParserOption(Char ShortOption, CommandLineParser CommandLineParser)
     : this(CommandLineParser)
 {
     this._Short = new Nullable<Char>(ShortOption);
 }
예제 #2
0
        /// <summary>
        /// Create a new fluent interface to add command line parser options.
        /// </summary>
        /// <param name="LongOption">The long option.</param>
        /// <param name="CommandLineParser">The command line parser.</param>
        public CommandLineParserOption(String LongOption, CommandLineParser CommandLineParser)
            : this(CommandLineParser)
        {
            if (LongOption == null || LongOption.Trim() == "")
                throw new ArgumentNullException("String", "The parameter must not be null or empty!");

            this.LongOption = LongOption.Trim();
        }
예제 #3
0
 /// <summary>
 /// Create a new fluent interface to add command line parser options.
 /// </summary>
 /// <param name="CommandLineParser">The command line parser.</param>
 public CommandLineParserOption(CommandLineParser CommandLineParser)
 {
     this.CommandLineParser = CommandLineParser;
 }