Add alias for switch method in CLI::Parser

This commit is contained in:
Gautham Goli 2019-01-18 22:03:07 +05:30
parent da22194195
commit 1748b66615
No known key found for this signature in database
GPG Key ID: 6A9ABBC284468364

View File

@ -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"