Merge pull request #7184 from dawidd6/cli-parser-comma-array-name-chomp
cli/parser: chomp '=' from comma_array flag name
This commit is contained in:
commit
5e63d0cef7
@ -95,6 +95,7 @@ module Homebrew
|
||||
end
|
||||
|
||||
def comma_array(name, description: nil)
|
||||
name = name.chomp "="
|
||||
description = option_to_description(name) if description.nil?
|
||||
process_option(name, description)
|
||||
@parser.on(name, OptionParser::REQUIRED_ARGUMENT, Array, *wrap_option_desc(description)) do |list|
|
||||
|
||||
@ -40,7 +40,7 @@ module Homebrew
|
||||
description: "Print the pull request URL instead of opening in a browser."
|
||||
switch "--no-fork",
|
||||
description: "Don't try to fork the repository."
|
||||
comma_array "--mirror=",
|
||||
comma_array "--mirror",
|
||||
description: "Use the specified <URL> as a mirror URL. If <URL> is a comma-separated list "\
|
||||
"of URLs, multiple mirrors will be added."
|
||||
flag "--version=",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user