/// <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; }
/// <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; }
/// <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; }