cli/parser: tweak style.

Co-authored-by: Kevin <apainintheneck@gmail.com>
This commit is contained in:
Mike McQuaid 2023-10-08 19:12:43 +01:00 committed by GitHub
parent d3959727d6
commit abeab3e6c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -614,7 +614,7 @@ module Homebrew
@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]
args.select! { |a| a.start_with?("-") }
args.pop # last argument is the description
if type == :switch
disable_switch(*args)
else