'Trouble with HomeBrew

I'm having trouble searching for the list of all casks when I run the command for it.

brew search --casks

I get the error you see in the picture.

Error: Invalid usage: This command requires at least 1 text or regex argument.

Screenshot of console

If anyone has had similar problems please share.



Solution 1:[1]

You need at least one string to search for.

$ brew search --casks fire
==> Casks
firefly                    firealpaca                 firestorm
firefox-beta               firebase-admin             firestormos
firefox-developer-edition  firebird-emu               fireworks
firefox-esr                firecamp                   multifirefox
firefox-nightly            firefox ?                  spitfire-audio

If you really need to find all available casks, you can use an empty arg like this:

brew search --casks ''

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Michael