list.rb: new syntax for multiple + versions flags
This commit is contained in:
parent
da66bf96b7
commit
288c9c6dc7
@ -31,15 +31,10 @@ module Homebrew
|
||||
switch "--pinned"
|
||||
switch "--versions"
|
||||
switch "--full-name"
|
||||
switch "--multiple"
|
||||
switch "--multiple", required_for: "--versions"
|
||||
switch :verbose
|
||||
end
|
||||
|
||||
if @args.multiple? && !@args.versions?
|
||||
opoo "--multiple requires --versions"
|
||||
@args.send("versions?=", true)
|
||||
end
|
||||
|
||||
# Use of exec means we don't explicitly exit
|
||||
list_unbrewed if @args.unbrewed?
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user