/// <inheritdoc cref="CommandBase.PrepareArguments"/> protected override string[] PrepareArguments() { var arguments = new List <string>(); AddOptions(arguments); arguments.AddConditionally( !InService.Equals(Default.InService, StringComparison.OrdinalIgnoreCase), InService); AddCommandAndArguments(arguments); return(arguments.ToArray()); }
private void AddService(IList <string> arguments) { arguments.AddConditionally(!InService.Equals(Default.InService, StringComparison.OrdinalIgnoreCase), InService); }