Merge pull request #5207 from scpeters/bottle_root_url_required_arg

dev-cmd/bottle: require arg for --root-url
This commit is contained in:
Steven Peters 2018-10-29 20:11:16 -07:00 committed by GitHub
commit 2b3f855083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -106,7 +106,7 @@ module Homebrew
depends_on: "--write",
description: "When passed with `--write`, a new commit will not generated after writing changes "\
"to the formula file."
flag "--root-url",
flag "--root-url=",
description: "Use the specified <URL> as the root of the bottle's URL instead of Homebrew's default."
switch :verbose
switch :debug

View File

@ -12,6 +12,11 @@ describe "brew bottle", :integration_test do
.and not_to_output.to_stdout
.and be_a_failure
expect { brew "bottle", "--root-url" }
.to output(/missing argument: --root-url/).to_stderr
.and not_to_output.to_stdout
.and be_a_failure
setup_test_formula "testball"
# `brew bottle` should not fail with dead symlink