public void Configure(IArgumentsBuilder argumentsBuilder) { argumentsBuilder.AddRequiredValues("files", this.files, "The files to be deleted", true); CommonOptions.AddRootDirectory(argumentsBuilder, () => this.RootDirectory, s => this.RootDirectory = s); argumentsBuilder.AddSwitch("r", "recursive", this.Recursive, b => this.Recursive = b, "Specifies whether to recurse into subdirectories."); CommonOptions.AddVerbose(argumentsBuilder, this.Verbose, b => this.Verbose = b); }
public void Configure(IArgumentsBuilder argumentsBuilder) { argumentsBuilder.AddRequiredList("p", "package-ids", this.packageIds, "The packages to purge (* Wildcards supported)"); argumentsBuilder.AddOptional("s", "source", () => this.Source, s => this.Source = s, @"Local source or source name to search for packages"); CommonOptions.AddVerbose(argumentsBuilder, this.Verbose, b => this.Verbose = b); }