You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
ran brew update and can still reproduce the problem?
ran brew doctor, fixed all issues and can still reproduce the problem?
ran brew config and brew doctor and included their output with your issue?
What you were trying to do (and why)
Run brew ls php --versions to get a list of versions I have installed, which previously worked.
What happened (include command output)
I get an Error: Invalid usage: versionscannot be passed withoutformula.
Command output
❯ brew ls php --versions
Usage: brew list, ls [options] [formula|cask]
List all installed formulae or casks
If formula is provided, summarise the paths within its current keg.
--formula, --formulae List only formulae. This is the default
action on non TTY.
--cask, --casks List only casks, or cask if provided.
--unbrewed List files in Homebrew's prefix not
installed by Homebrew.
--full-name Print formulae with fully-qualified names.
If --full-name is not passed, other
options (i.e. -1, -l, -r and -t)
are passed to ls(1) which produces the
actual output.
--versions Show the version number for installed
formulae, or only the specified formulae if
formula are provided.
--multiple Only show formulae with multiple versions
installed.
--pinned Show the versions of pinned formulae, or
only the specified (pinned) formulae if
formula are provided. See also pin,
unpin.
-1 Force output to be one entry per line. This
is the default when output is not to a
terminal.
-l 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.
-r Reverse the order of the formulae sort to
list the oldest entries first.
-t Sort formulae by time modified, listing
most recently modified first.
-d, --debug Display any debugging information.
-q, --quiet Suppress any warnings.
-v, --verbose Make some output more verbose.
-h, --help Show this message.
Error: Invalid usage: versions cannot be passed without formula.
❯ brew --version
Homebrew 2.5.8-58-gdbdf7cf
Homebrew/homebrew-core (git revision 576f03; last commit 2020-11-03)
Homebrew/homebrew-cask (git revision cd56b; last commit 2020-11-03)
❯ brew ls php --versions
Usage: brew list, ls [options] [formula|cask]
List all installed formulae or casks
If formula is provided, summarise the paths within its current keg.
--formula, --formulae List only formulae. This is the default
action on non TTY.
--cask, --casks List only casks, or cask if provided.
--unbrewed List files in Homebrew's prefix not installed by Homebrew. --full-name Print formulae with fully-qualified names. If --full-name is not passed, other options (i.e. -1, -l, -r and -t) are passed to ls(1) which produces the actual output. --versions Show the version number for installed formulae, or only the specified formulae if formula are provided. --multiple Only show formulae with multiple versions installed. --pinned Show the versions of pinned formulae, or only the specified (pinned) formulae if formula are provided. See also pin, unpin. -1 Force output to be one entry per line. This is the default when output is not to a terminal. -l 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. -r Reverse the order of the formulae sort to list the oldest entries first. -t Sort formulae by time modified, listing most recently modified first. -d, --debug Display any debugging information. -q, --quiet Suppress any warnings. -v, --verbose Make some output more verbose. -h, --help Show this message.Error: Invalid usage: `versions` cannot be passed without `formula`.
As far as I can tell I am supplying the formula, e.g. php. Also tried with node and other items too, same thing.
Output of brew config and brew doctor commands
❯ brew config
HOMEBREW_VERSION: 2.5.8-58-gdbdf7cf
ORIGIN: https://github.com/Homebrew/brew
HEAD: dbdf7cf2658975b25e3d2422b89ca5c4469f51f3
Last commit: 77 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 576f03c5cf69d012d031acdf1642284370477bc7
Core tap last commit: 20 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit icelake
Clang: 12.0 build 1200
Git: 2.29.2 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15.7-x86_64
CLT: 12.1.0.0.1.1602137645
Xcode: N/A
```
❯ brew doctor
Your system is ready to brew.
Also tried brew php ls --versions, brew ls --versions php, same thing. Obviously brew php ls --versions won't work.
The text was updated successfully, but these errors were encountered:
Bug report
Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
Run
brew ls php --versions
to get a list of versions I have installed, which previously worked.What happened (include command output)
I get an
Error: Invalid usage:
versionscannot be passed without
formula.
Command output
What you expected to happen
Get a list of versions of
php
I had installed.Step-by-step reproduction instructions (by running
brew
commands)As far as I can tell I am supplying the formula, e.g.
php
. Also tried withnode
and other items too, same thing.Output of
brew config
andbrew doctor
commandsAlso tried
brew php ls --versions
,brew ls --versions php
, same thing. Obviouslybrew php ls --versions
won't work.The text was updated successfully, but these errors were encountered: