cmd/list: Limit -lrt options to being passed with --formula
- These are documented as only working on formulae, but users expect the same options (long format, reverse order or sort by modified time) to be passed to both formulae and casks in the default `brew list`. The output looks weird as they're not. Hence, constrain these to be `--formula`-only. - This was added originally in 5adb76a5babdccd2c4edfb8752ac979ed14716ca, but then disappeared.
This commit is contained in:
parent
ab1d39966c
commit
1b4646dee4
@ -47,11 +47,14 @@ module Homebrew
|
||||
description: "Force output to be one entry per line. " \
|
||||
"This is the default when output is not to a terminal."
|
||||
switch "-l",
|
||||
depends_on: "--formula",
|
||||
description: "List formulae in long format. If the output is to a terminal, "\
|
||||
"a total sum for all the file sizes is printed before the long listing."
|
||||
switch "-r",
|
||||
depends_on: "--formula",
|
||||
description: "Reverse the order of the formulae sort to list the oldest entries first."
|
||||
switch "-t",
|
||||
depends_on: "--formula",
|
||||
description: "Sort formulae by time modified, listing most recently modified first."
|
||||
|
||||
conflicts "--formula", "--cask"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user