diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index 02b46eb88b..5898088037 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -50,7 +50,7 @@ module Homebrew def bottle_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `bottle` [] + `bottle` [] [ ...] Generate a bottle (binary package) from a formula that was installed with `--build-bottle`. diff --git a/Library/Homebrew/dev-cmd/bump-unversioned-casks.rb b/Library/Homebrew/dev-cmd/bump-unversioned-casks.rb index 83811e9651..00a29fb6c5 100644 --- a/Library/Homebrew/dev-cmd/bump-unversioned-casks.rb +++ b/Library/Homebrew/dev-cmd/bump-unversioned-casks.rb @@ -18,7 +18,7 @@ module Homebrew def self.bump_unversioned_casks_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `bump-unversioned-casks` [] [|] + `bump-unversioned-casks` [] | [| ...] Check all casks with unversioned URLs in a given for updates. EOS diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index 9e23cb6bdf..a5bec363b4 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -12,7 +12,7 @@ module Homebrew def bump_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `bump` [] [] + `bump` [] [] [ ...] Display out-of-date brew formulae and the latest version available. Also displays whether a pull request has been opened with the URL. diff --git a/Library/Homebrew/dev-cmd/command.rb b/Library/Homebrew/dev-cmd/command.rb index 8b9ecc6e24..48f0384e14 100644 --- a/Library/Homebrew/dev-cmd/command.rb +++ b/Library/Homebrew/dev-cmd/command.rb @@ -13,7 +13,7 @@ module Homebrew def command_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `command` + `command` [ ...] Display the path to the file being used when invoking `brew` . EOS diff --git a/Library/Homebrew/dev-cmd/edit.rb b/Library/Homebrew/dev-cmd/edit.rb index 83505116dd..4e6a1edae5 100644 --- a/Library/Homebrew/dev-cmd/edit.rb +++ b/Library/Homebrew/dev-cmd/edit.rb @@ -13,7 +13,7 @@ module Homebrew def edit_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `edit` [|] + `edit` [|] [| ...] Open a or in the editor set by `EDITOR` or `HOMEBREW_EDITOR`, or open the Homebrew repository for editing if no formula is provided. diff --git a/Library/Homebrew/dev-cmd/formula.rb b/Library/Homebrew/dev-cmd/formula.rb index 39f960eb4b..0091f62a06 100644 --- a/Library/Homebrew/dev-cmd/formula.rb +++ b/Library/Homebrew/dev-cmd/formula.rb @@ -13,7 +13,7 @@ module Homebrew def formula_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `formula` + `formula` [ ...] Display the path where is located. EOS diff --git a/Library/Homebrew/dev-cmd/irb.rb b/Library/Homebrew/dev-cmd/irb.rb index 2ba4d7781f..6ab1a14ce6 100644 --- a/Library/Homebrew/dev-cmd/irb.rb +++ b/Library/Homebrew/dev-cmd/irb.rb @@ -34,6 +34,8 @@ module Homebrew switch "--pry", env: :pry, description: "Use Pry instead of IRB. Implied if `HOMEBREW_PRY` is set." + + named_args :none end end diff --git a/Library/Homebrew/dev-cmd/linkage.rb b/Library/Homebrew/dev-cmd/linkage.rb index dcd7782403..e1717c23b2 100644 --- a/Library/Homebrew/dev-cmd/linkage.rb +++ b/Library/Homebrew/dev-cmd/linkage.rb @@ -14,7 +14,7 @@ module Homebrew def linkage_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `linkage` [] [] + `linkage` [] [] [ ...] Check the library links from the given kegs. If no are provided, check all kegs. Raises an error if run on uninstalled formulae. diff --git a/Library/Homebrew/dev-cmd/livecheck.rb b/Library/Homebrew/dev-cmd/livecheck.rb index b27443b2cd..2029b97988 100644 --- a/Library/Homebrew/dev-cmd/livecheck.rb +++ b/Library/Homebrew/dev-cmd/livecheck.rb @@ -20,7 +20,7 @@ module Homebrew def livecheck_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `livecheck` [|] + `livecheck` [|] [| ...] Check for newer versions of formulae and/or casks from upstream. diff --git a/Library/Homebrew/dev-cmd/mirror.rb b/Library/Homebrew/dev-cmd/mirror.rb index 435923c0cd..aa4af5a9f1 100644 --- a/Library/Homebrew/dev-cmd/mirror.rb +++ b/Library/Homebrew/dev-cmd/mirror.rb @@ -13,7 +13,7 @@ module Homebrew def mirror_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `mirror` + `mirror` [ ...] Reupload the stable URL of a formula to Bintray for use as a mirror. EOS diff --git a/Library/Homebrew/dev-cmd/pr-publish.rb b/Library/Homebrew/dev-cmd/pr-publish.rb index 7e38180d50..dc2e747277 100644 --- a/Library/Homebrew/dev-cmd/pr-publish.rb +++ b/Library/Homebrew/dev-cmd/pr-publish.rb @@ -29,7 +29,7 @@ module Homebrew flag "--workflow=", description: "Target workflow filename (default: `publish-commit-bottles.yml`)." - named_args number: 1 + named_args min: 1 end end diff --git a/Library/Homebrew/dev-cmd/pr-pull.rb b/Library/Homebrew/dev-cmd/pr-pull.rb index ce569c7afd..1f89438e04 100644 --- a/Library/Homebrew/dev-cmd/pr-pull.rb +++ b/Library/Homebrew/dev-cmd/pr-pull.rb @@ -71,7 +71,7 @@ module Homebrew conflicts "--clean", "--autosquash" - named_args number: 1 + named_args min: 1 end end diff --git a/Library/Homebrew/dev-cmd/style.rb b/Library/Homebrew/dev-cmd/style.rb index df9e5bf302..921d09d150 100644 --- a/Library/Homebrew/dev-cmd/style.rb +++ b/Library/Homebrew/dev-cmd/style.rb @@ -15,7 +15,7 @@ module Homebrew def style_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `style` [] [||] + `style` [] [|||] [||| ...] Check formulae or files for conformance to Homebrew style guidelines. diff --git a/Library/Homebrew/dev-cmd/test.rb b/Library/Homebrew/dev-cmd/test.rb index 0cd00db0f4..290ebe636d 100644 --- a/Library/Homebrew/dev-cmd/test.rb +++ b/Library/Homebrew/dev-cmd/test.rb @@ -15,7 +15,7 @@ module Homebrew def test_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `test` [] + `test` [] [ ...] Run the test method provided by an installed formula. There is no standard output or return code, but generally it should notify the diff --git a/Library/Homebrew/dev-cmd/unbottled.rb b/Library/Homebrew/dev-cmd/unbottled.rb index 31c1d7005b..2188a77d52 100644 --- a/Library/Homebrew/dev-cmd/unbottled.rb +++ b/Library/Homebrew/dev-cmd/unbottled.rb @@ -13,7 +13,7 @@ module Homebrew def unbottled_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `unbottled` [] + `unbottled` [] [ ...] Outputs the unbottled dependents of formulae. EOS diff --git a/Library/Homebrew/dev-cmd/unpack.rb b/Library/Homebrew/dev-cmd/unpack.rb index ccce3a938c..b586ad64c5 100644 --- a/Library/Homebrew/dev-cmd/unpack.rb +++ b/Library/Homebrew/dev-cmd/unpack.rb @@ -14,7 +14,7 @@ module Homebrew def unpack_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `unpack` [] + `unpack` [] [] Unpack the source files for into subdirectories of the current working directory. diff --git a/Library/Homebrew/dev-cmd/update-python-resources.rb b/Library/Homebrew/dev-cmd/update-python-resources.rb index e9883c99ac..2f7de56886 100644 --- a/Library/Homebrew/dev-cmd/update-python-resources.rb +++ b/Library/Homebrew/dev-cmd/update-python-resources.rb @@ -13,7 +13,7 @@ module Homebrew def update_python_resources_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `update-python-resources` [] + `update-python-resources` [] [ ...] Update versions for PyPI resource blocks in . EOS @@ -34,7 +34,7 @@ module Homebrew comma_array "--exclude-packages=", description: "Exclude these packages when finding resources." - named_args :formula, number: 1 + named_args :formula, min: 1 end end