cli/parser: tweak style.
Co-authored-by: Kevin <apainintheneck@gmail.com>
This commit is contained in:
parent
d3959727d6
commit
abeab3e6c6
@ -614,7 +614,7 @@ module Homebrew
|
|||||||
@processed_options.reject! { |existing| existing.second == option.long.first } if option.long.first.present?
|
@processed_options.reject! { |existing| existing.second == option.long.first } if option.long.first.present?
|
||||||
@processed_options << [option.short.first, option.long.first, option.arg, option.desc.first, hidden]
|
@processed_options << [option.short.first, option.long.first, option.arg, option.desc.first, hidden]
|
||||||
|
|
||||||
args.select! { |a| a.start_with?("-") }
|
args.pop # last argument is the description
|
||||||
if type == :switch
|
if type == :switch
|
||||||
disable_switch(*args)
|
disable_switch(*args)
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user