Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-cmd/man: Completely remove --link #10350

Merged
merged 1 commit into from Jan 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions Library/Homebrew/dev-cmd/man.rb
Expand Up @@ -28,18 +28,13 @@ def man_args
"can be used to notify CI when the manpages are out of date. Additionally, "\
"the date used in new manpages will match those in the existing manpages (to allow "\
"comparison without factoring in the date)."
switch "--link",
description: "This is now done automatically by `brew update`."

named_args :none
end
end

def man
args = man_args.parse

odie "`brew man --link` is now done automatically by `brew update`." if args.link?

Commands.rebuild_internal_commands_completion_list
regenerate_man_pages(preserve_date: args.fail_if_changed?, quiet: args.quiet?)

Expand Down
2 changes: 0 additions & 2 deletions docs/Manpage.md
Expand Up @@ -1094,8 +1094,6 @@ Generate Homebrew's manpages.

* `--fail-if-changed`:
Return a failing status code if changes are detected in the manpage outputs. This can be used to notify CI when the manpages are out of date. Additionally, the date used in new manpages will match those in the existing manpages (to allow comparison without factoring in the date).
* `--link`:
This is now done automatically by `brew update`.

### `mirror` *`formula`* [*`formula`* ...]

Expand Down
4 changes: 0 additions & 4 deletions manpages/brew.1
Expand Up @@ -1509,10 +1509,6 @@ Generate Homebrew\'s manpages\.
\fB\-\-fail\-if\-changed\fR
Return a failing status code if changes are detected in the manpage outputs\. This can be used to notify CI when the manpages are out of date\. Additionally, the date used in new manpages will match those in the existing manpages (to allow comparison without factoring in the date)\.
.
.TP
\fB\-\-link\fR
This is now done automatically by \fBbrew update\fR\.
.
.SS "\fBmirror\fR \fIformula\fR [\fIformula\fR \.\.\.]"
Reupload the stable URL of a formula to Bintray for use as a mirror\.
.
Expand Down