diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index 67c5ab484e..46c56ccd9f 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -1,4 +1,4 @@ -#: * `bump-formula-pr` [`--devel`] [`--dry-run` [`--write`]] [`--audit`|`--strict`] [`--no-browse] [`--mirror=`] [`--version=`] [`--message=`] (`--url=` `--sha256=`|`--tag=` `--revision=`) []: +#: * `bump-formula-pr` [`--devel`] [`--dry-run` [`--write`]] [`--no-audit`|`--strict`] [`--no-browse] [`--mirror=`] [`--version=`] [`--message=`] (`--url=` `--sha256=`|`--tag=` `--revision=`) []: #: Create a pull request to update a formula with a new URL or a new tag. #: #: If a is specified, the checksum of the new download should @@ -16,7 +16,7 @@ #: If `--write` is passed along with `--dry-run`, perform a not-so-dry run by #: making the expected file modifications but not taking any Git actions. #: -#: If `--audit` is passed, run `brew audit` before opening the PR. +#: If `--no-audit` is passed, don't run `brew audit` before opening the PR. #: #: If `--strict` is passed, run `brew audit --strict` before opening the PR. #: @@ -74,8 +74,8 @@ module Homebrew depends_on: "--dry-run", description: "When passed along with `--dry-run`, perform a not-so-dry run by making the expected "\ "file modifications but not taking any Git actions." - switch "--audit", - description: "Run `brew audit` before opening the PR." + switch "--no-audit", + description: "Don't run `brew audit` before opening the PR." switch "--strict", description: "Run `brew audit --strict` before opening the PR." switch "--no-browse", @@ -320,17 +320,21 @@ module Homebrew end if args.dry_run? - if args.strict? + if args.no_audit? + ohai "Skipping `brew audit`" + elsif args.strict? ohai "brew audit --strict #{formula.path.basename}" - elsif args.audit? + else ohai "brew audit #{formula.path.basename}" end else failed_audit = false - if args.strict? + if args.no_audit? + ohai "Skipping `brew audit`" + elsif args.strict? system HOMEBREW_BREW_FILE, "audit", "--strict", formula.path failed_audit = !$CHILD_STATUS.success? - elsif args.audit? + else system HOMEBREW_BREW_FILE, "audit", formula.path failed_audit = !$CHILD_STATUS.success? end diff --git a/docs/Manpage.md b/docs/Manpage.md index 461af9dd4b..8f6236ef53 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -759,8 +759,8 @@ formula already uses. Print what would be done rather than doing it. * `--write`: When passed along with `--dry-run`, perform a not-so-dry run by making the expected file modifications but not taking any Git actions. -* `--audit`: - Run `brew audit` before opening the PR. +* `--no-audit`: + Don't run `brew audit` before opening the PR. * `--strict`: Run `brew audit --strict` before opening the PR. * `--no-browse`: diff --git a/manpages/brew.1 b/manpages/brew.1 index 48c71f5902..cad8482b05 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -807,8 +807,8 @@ Print what would be done rather than doing it\. When passed along with \fB\-\-dry\-run\fR, perform a not\-so\-dry run by making the expected file modifications but not taking any Git actions\. . .TP -\fB\-\-audit\fR -Run \fBbrew audit\fR before opening the PR\. +\fB\-\-no\-audit\fR +Don\'t run \fBbrew audit\fR before opening the PR\. . .TP \fB\-\-strict\fR