cmd/info: fix --json argument handling.
`--all` and `--installed` do not require formulae arguments. Fixes https://github.com/Homebrew/brew/issues/6842
Please register or sign in to comment
`--all` and `--installed` do not require formulae arguments. Fixes https://github.com/Homebrew/brew/issues/6842