manpages: relocate some sections

Reorder switches as force/quiet/verbose/debug, --installed before --all, and link to SPECIFYING FORMULAE from top of page.
This commit is contained in:
EricFromCanada 2019-08-09 14:23:04 -04:00
parent ee314617f7
commit 329c6c78be
7 changed files with 10 additions and 13 deletions

View File

@ -19,11 +19,11 @@ module Homebrew
description: "Fetch HEAD version instead of stable version." description: "Fetch HEAD version instead of stable version."
switch "--devel", switch "--devel",
description: "Fetch development version instead of stable version." description: "Fetch development version instead of stable version."
switch :force,
description: "Remove a previously cached version and re-fetch."
switch :verbose, switch :verbose,
description: "Do a verbose VCS checkout, if the URL represents a VCS. This is useful for "\ description: "Do a verbose VCS checkout, if the URL represents a VCS. This is useful for "\
"seeing if an existing VCS cache has been updated." "seeing if an existing VCS cache has been updated."
switch :force,
description: "Remove a previously cached version and re-fetch."
switch "--retry", switch "--retry",
description: "Retry if a download fails or re-download if the checksum of a previously cached "\ description: "Retry if a download fails or re-download if the checksum of a previously cached "\
"version no longer matches." "version no longer matches."

View File

@ -17,9 +17,6 @@ module Homebrew
Upload logs for a failed build of <formula> to a new Gist. Upload logs for a failed build of <formula> to a new Gist.
<formula> is usually the name of the formula to install, but it can be specified
in several different ways.
If no logs are found, an error message is presented. If no logs are found, an error message is presented.
EOS EOS
switch "--with-hostname", switch "--with-hostname",

View File

@ -20,9 +20,6 @@ module Homebrew
Install <formula>. Install <formula>.
<formula> is usually the name of the formula to install, but it can be specified
in several different ways.
Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will be run for the Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will be run for the
installed formulae or, every 30 days, for all formulae. installed formulae or, every 30 days, for all formulae.
EOS EOS

View File

@ -16,12 +16,12 @@ module Homebrew
EOS EOS
switch "--compact", switch "--compact",
description: "Show all options on a single line separated by spaces." description: "Show all options on a single line separated by spaces."
switch "--all",
description: "Show options for all formulae."
switch "--installed", switch "--installed",
description: "Show options for all installed formulae." description: "Show options for all installed formulae."
switch "--all",
description: "Show options for all available formulae."
switch :debug switch :debug
conflicts "--all", "--installed" conflicts "--installed", "--all"
end end
end end

View File

@ -14,8 +14,8 @@ module Homebrew
Rerun the post-install steps for <formula>. Rerun the post-install steps for <formula>.
EOS EOS
switch :verbose
switch :force switch :force
switch :verbose
switch :debug switch :debug
end end
end end

View File

@ -29,8 +29,8 @@ module Homebrew
description: "Run in 'auto-update' mode (faster, less output)." description: "Run in 'auto-update' mode (faster, less output)."
switch :force switch :force
switch :quiet switch :quiet
switch :debug
switch :verbose switch :verbose
switch :debug
hide_from_man_page! hide_from_man_page!
end end
end end

View File

@ -33,6 +33,9 @@ these flags should only appear after a command.
Install <formula>. Install <formula>.
<formula> is usually the name of the formula to install, but it has other syntaxes which
are listed in the [SPECIFYING FORMULAE](#specifying-formulae) section.
### `uninstall` <formula>: ### `uninstall` <formula>:
Uninstall <formula>. Uninstall <formula>.