Add alias for switch method in CLI::Parser
This commit is contained in:
parent
da22194195
commit
1748b66615
@ -59,6 +59,7 @@ module Homebrew
|
|||||||
|
|
||||||
enable_switch(*names) if !env.nil? && !ENV["HOMEBREW_#{env.to_s.upcase}"].nil?
|
enable_switch(*names) if !env.nil? && !ENV["HOMEBREW_#{env.to_s.upcase}"].nil?
|
||||||
end
|
end
|
||||||
|
alias switch_option switch
|
||||||
|
|
||||||
def usage_banner(text)
|
def usage_banner(text)
|
||||||
@parser.banner = "#{text}\n"
|
@parser.banner = "#{text}\n"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user