Merge pull request #9357 from scpeters/revert_cmd_list_disabled

Only deprecate "brew list" without arguments
This commit is contained in:
Mike McQuaid 2020-12-01 11:56:00 +00:00 committed by GitHub
commit 7348bc0ec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,8 @@ module Homebrew
ls_args << "-t" if args.t?
if !$stdout.tty? && !args.formula?
odisabled "`brew list` to only list formulae", "`brew list --formula`"
odeprecated "`brew list` to only list formulae", "`brew list --formula`"
safe_system "ls", *ls_args, HOMEBREW_CELLAR
else
safe_system "ls", *ls_args, HOMEBREW_CELLAR
list_casks(args: args) unless args.formula?