public LightConsoleCommand(LightCommandExecutor executor, TextWriter outputStream) { this._executor = executor; this._outputStream = outputStream; this.IsCommand(LightVerb, "Change properties for one or more lights") .AllowsAnyAdditionalArguments("<light numbers>") .HasOption<string>("c|color=", "Hex color to apply to the light(s)", c => { this.Color = c; }); }
public OffConsoleCommand(LightCommandExecutor executor) { this._executor = executor; this.IsCommand("off", "Turn the light(s) off"); }