diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index 758c98b2c395756b4fc8bcb7df9f86561f86a8f3..6dda14d46ab2fce38cdc2a210a6481b49b5634d9 100644 --- a/Library/Homebrew/cmd/list.rb +++ b/Library/Homebrew/cmd/list.rb @@ -32,7 +32,7 @@ module Homebrew switch "--pinned", description: "Show the versions of pinned formulae, or only the specified (pinned) "\ "formulae if <formula> are provided. See also `pin`, `unpin`." - switch "--casks", + switch "--cask", description: "List casks" # passed through to ls switch "-1", @@ -47,14 +47,14 @@ module Homebrew description: "Sort by time modified, listing most recently modified first." switch :verbose switch :debug - ["--unbrewed", "--multiple", "--pinned", "-l", "-r", "-t"].each { |flag| conflicts "--casks", flag } + ["--unbrewed", "--multiple", "--pinned", "-l", "-r", "-t"].each { |flag| conflicts "--cask", flag } end end def list list_args.parse - return list_casks if args.casks? + return list_casks if args.cask? return list_unbrewed if args.unbrewed? diff --git a/docs/Manpage.md b/docs/Manpage.md index 2aa5bc9ed3140912dfca84f3e46a563a7c398c61..cab07ef0ab1a1f466dab185eb05b7012737302a5 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -290,6 +290,8 @@ If *`formula`* is provided, summarise the paths within its current keg. 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`. +* `--cask`: + List casks * `-1`: Force output to be one entry per line. This is the default when output is not to a terminal. * `-l`: diff --git a/manpages/brew.1 b/manpages/brew.1 index 525eeddfd8a78af8034b92717a2dcfde236b5ce6..5fd781165069e6cdf1c68fb85cd19f27982e8ac4 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -393,6 +393,10 @@ Only show formulae with multiple versions installed\. Show the versions of pinned formulae, or only the specified (pinned) formulae if \fIformula\fR are provided\. See also \fBpin\fR, \fBunpin\fR\. . .TP +\fB\-\-cask\fR +List casks +. +.TP \fB\-1\fR Force output to be one entry per line\. This is the default when output is not to a terminal\. .