Beispiel #1
0
 /// <summary>
 /// Initializes the command line switch
 /// </summary>
 /// <param name="fullPrefix">The command line switch prefix</param>
 /// <param name="handler">The callback handler</param>
 public CommandLineSwitch(string fullPrefix, CommandLineSwitchHandler handler)
 {
     this.fullPrefix  = fullPrefix;
     this.shortPrefix = null;
     this.handler     = handler;
     this.hasValue    = false;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes the command line switch
 /// </summary>
 /// <param name="fullPrefix">The command line switch prefix</param>
 /// <param name="shortPrefix">The short prefix for this switch</param>
 /// <param name="hasValue">True if this switch requires a parameter value</param>
 /// <param name="handler">The callback handler</param>
 public CommandLineSwitch(string fullPrefix, string shortPrefix, bool hasValue, CommandLineSwitchHandler handler)
     : this(fullPrefix, shortPrefix, handler)
 {
     this.hasValue = hasValue;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes the command line switch
 /// </summary>
 /// <param name="fullPrefix">The command line switch prefix</param>
 /// <param name="shortPrefix">The short prefix for this switch</param>
 /// <param name="handler">The callback handler</param>
 public CommandLineSwitch(string fullPrefix, string shortPrefix, CommandLineSwitchHandler handler)
     : this(fullPrefix, handler)
 {
     this.shortPrefix = shortPrefix;
 }