From f2064750f578c58335719ccf0ed33bd09c3d2ee3 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Fri, 9 Apr 2021 16:28:43 -0400 Subject: [PATCH 1/3] Add casks to default help text --- Library/Homebrew/help.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Library/Homebrew/help.rb b/Library/Homebrew/help.rb index 66e38c3576..3c58a8a0c9 100644 --- a/Library/Homebrew/help.rb +++ b/Library/Homebrew/help.rb @@ -17,21 +17,21 @@ module Homebrew HOMEBREW_HELP = <<~EOS Example usage: brew search [TEXT|/REGEX/] - brew info [FORMULA...] - brew install FORMULA... + brew info [FORMULA|CASK...] + brew install FORMULA|CASK... brew update - brew upgrade [FORMULA...] - brew uninstall FORMULA... - brew list [FORMULA...] + brew upgrade [FORMULA|CASK...] + brew uninstall FORMULA|CASK... + brew list [FORMULA|CASK...] Troubleshooting: brew config brew doctor - brew install --verbose --debug FORMULA + brew install --verbose --debug FORMULA|CASK Contributing: brew create [URL [--no-fetch]] - brew edit [FORMULA...] + brew edit [FORMULA|CASK...] Further help: brew commands From 3fe6e8e1a1611c53f66dde0143f5998e9d0fb554 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Fri, 9 Apr 2021 16:29:19 -0400 Subject: [PATCH 2/3] Remove outdated `brew search` reference from README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d84b079b5d..c2e217b3ce 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Features, usage and installation instructions are [summarised on the homepage](h ## What Packages Are Available? -1. Type `brew search` for a list. +1. Type `brew formulae` for a list. 2. Or visit [formulae.brew.sh](https://formulae.brew.sh) to browse packages online. 3. Or use `brew search --desc ` to browse packages from the command line. From 86c241ab42744f075484740583580c12e388db8e Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Sat, 10 Apr 2021 14:20:39 -0400 Subject: [PATCH 3/3] Make search and create arguments mandatory Co-Authored-By: Nanda H Krishna --- Library/Homebrew/help.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/help.rb b/Library/Homebrew/help.rb index 3c58a8a0c9..817d83160e 100644 --- a/Library/Homebrew/help.rb +++ b/Library/Homebrew/help.rb @@ -16,7 +16,7 @@ module Homebrew # NOTE: Keep lines less than 80 characters! Wrapping is just not cricket. HOMEBREW_HELP = <<~EOS Example usage: - brew search [TEXT|/REGEX/] + brew search TEXT|/REGEX/ brew info [FORMULA|CASK...] brew install FORMULA|CASK... brew update @@ -30,7 +30,7 @@ module Homebrew brew install --verbose --debug FORMULA|CASK Contributing: - brew create [URL [--no-fetch]] + brew create URL [--no-fetch] brew edit [FORMULA|CASK...] Further help: