Skip to content

Commit

Permalink
dev-cmd/man: Completely remove --link
Browse files Browse the repository at this point in the history
- This was deprecated in ec75fbc in 2016!
  • Loading branch information
issyl0 authored and dawidd6 committed Jan 17, 2021
1 parent 8869208 commit a0f3545
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
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

0 comments on commit a0f3545

Please sign in to comment.