Skip to content

Commit aecd2b3

Browse files
Merge pull request #20361 from Homebrew/manpage-updates
Manpage: source wording & formatting fixes
2 parents a29a643 + fe13aac commit aecd2b3

33 files changed

+211
-192
lines changed

Library/Homebrew/cmd/--cache.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def self.command_name = "--cache"
2929
description: "Show the cache file used when building from source."
3030
switch "--force-bottle",
3131
description: "Show the cache file used when pouring a bottle."
32-
flag "--bottle-tag=",
33-
description: "Show the cache file used when pouring a bottle for the given tag."
32+
flag "--bottle-tag=",
33+
description: "Show the cache file used when pouring a bottle for the given tag."
3434
switch "--HEAD",
3535
description: "Show the cache file used when building from HEAD."
3636
switch "--formula", "--formulae",

Library/Homebrew/cmd/--prefix.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def self.command_name = "--prefix"
5252
description: "List files in Homebrew's prefix not installed by Homebrew."
5353
switch "--installed",
5454
description: "Outputs nothing and returns a failing status code if <formula> is not installed."
55+
5556
conflicts "--unbrewed", "--installed"
5657

5758
named_args :formula

Library/Homebrew/cmd/bundle.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ class Bundle < AbstractCommand
5151
`brew bundle remove` <name> [...]:
5252
Remove entries that match `name` from your `Brewfile`. Use `--formula`, `--cask`, `--tap`, `--mas`, `--whalebrew` or `--vscode` to remove only entries of the corresponding type. Passing `--formula` also removes matches against formula aliases and old formula names.
5353
54-
`brew bundle exec` [--check] <command>:
54+
`brew bundle exec` [`--check`] <command>:
5555
Run an external command in an isolated build environment based on the `Brewfile` dependencies.
5656
5757
This sanitized build environment ignores unrequested dependencies, which makes sure that things you didn't specify in your `Brewfile` won't get picked up by commands like `bundle install`, `npm install`, etc. It will also add compiler flags which will help with finding keg-only dependencies like `openssl`, `icu4c`, etc.
5858
59-
`brew bundle sh` [--check]:
59+
`brew bundle sh` [`--check`]:
6060
Run your shell in a `brew bundle exec` environment.
6161
62-
`brew bundle env` [--check]:
62+
`brew bundle env` [`--check`]:
6363
Print the environment variables that would be set in a `brew bundle exec` environment.
6464
EOS
65-
flag "--file=",
66-
description: "Read from or write to the `Brewfile` from this location. " \
67-
"Use `--file=-` to pipe to stdin/stdout."
65+
flag "--file=",
66+
description: "Read from or write to the `Brewfile` from this location. " \
67+
"Use `--file=-` to pipe to stdin/stdout."
6868
switch "--global",
6969
description: "Read from or write to the `Brewfile` from `$HOMEBREW_BUNDLE_FILE_GLOBAL` (if set), " \
7070
"`${XDG_CONFIG_HOME}/homebrew/Brewfile` (if `$XDG_CONFIG_HOME` is set), " \
@@ -80,11 +80,11 @@ class Bundle < AbstractCommand
8080
switch "--upgrade",
8181
description: "`install` runs `brew upgrade` on outdated dependencies, " \
8282
"even if `$HOMEBREW_BUNDLE_NO_UPGRADE` is set."
83-
flag "--upgrade-formulae=", "--upgrade-formula=",
84-
description: "`install` runs `brew upgrade` on any of these comma-separated formulae, " \
85-
"even if `$HOMEBREW_BUNDLE_NO_UPGRADE` is set."
83+
flag "--upgrade-formulae=", "--upgrade-formula=",
84+
description: "`install` runs `brew upgrade` on any of these comma-separated formulae, " \
85+
"even if `$HOMEBREW_BUNDLE_NO_UPGRADE` is set."
8686
switch "--install",
87-
description: "Run `install` before continuing to other operations e.g. `exec`."
87+
description: "Run `install` before continuing to other operations, e.g. `exec`."
8888
switch "--services",
8989
description: "Temporarily start services while running the `exec` or `sh` command.",
9090
env: :bundle_services

Library/Homebrew/cmd/help.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class HelpCmd < AbstractCommand
1212
Outputs the usage instructions for `brew` <command>.
1313
Equivalent to `brew --help` <command>.
1414
EOS
15+
1516
named_args [:command]
1617
end
1718

Library/Homebrew/cmd/install.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,14 @@ class InstallCmd < AbstractCommand
134134
end
135135
formula_options
136136
[
137-
[:switch, "--cask", "--casks", { description: "Treat all named arguments as casks." }],
137+
[:switch, "--cask", "--casks", {
138+
description: "Treat all named arguments as casks.",
139+
}],
138140
[:switch, "--[no-]binaries", {
139141
description: "Disable/enable linking of helper executables (default: enabled).",
140142
env: :cask_opts_binaries,
141143
}],
142-
[:switch, "--require-sha", {
144+
[:switch, "--require-sha", {
143145
description: "Require all casks to have a checksum.",
144146
env: :cask_opts_require_sha,
145147
}],

Library/Homebrew/cmd/list.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class List < AbstractCommand
5454
description: "List formulae and/or casks in long format. " \
5555
"Has no effect when a formula or cask name is passed as an argument."
5656
switch "-r",
57-
description: "Reverse the order of the formulae and/or casks sort to list the oldest entries first. " \
57+
description: "Reverse the order of formula and/or cask sorting to list the oldest entries first. " \
5858
"Has no effect when a formula or cask name is passed as an argument."
5959
switch "-t",
6060
description: "Sort formulae and/or casks by time modified, listing most recently modified first. " \

Library/Homebrew/cmd/reinstall.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ class Reinstall < AbstractCommand
4444
"Print download, install and net install sizes of bottles and dependencies.",
4545
env: :ask
4646
[
47-
[:switch, "--formula", "--formulae", { description: "Treat all named arguments as formulae." }],
47+
[:switch, "--formula", "--formulae", {
48+
description: "Treat all named arguments as formulae.",
49+
}],
4850
[:switch, "-s", "--build-from-source", {
4951
description: "Compile <formula> from source even if a bottle is available.",
5052
}],
@@ -74,12 +76,14 @@ class Reinstall < AbstractCommand
7476
end
7577
formula_options
7678
[
77-
[:switch, "--cask", "--casks", { description: "Treat all named arguments as casks." }],
79+
[:switch, "--cask", "--casks", {
80+
description: "Treat all named arguments as casks.",
81+
}],
7882
[:switch, "--[no-]binaries", {
7983
description: "Disable/enable linking of helper executables (default: enabled).",
8084
env: :cask_opts_binaries,
8185
}],
82-
[:switch, "--require-sha", {
86+
[:switch, "--require-sha", {
8387
description: "Require all casks to have a checksum.",
8488
env: :cask_opts_require_sha,
8589
}],

Library/Homebrew/cmd/services.rb

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Services < AbstractCommand
2222
Manage background services with macOS' `launchctl`(1) daemon manager or
2323
Linux's `systemctl`(1) service manager.
2424
25-
If `sudo` is passed, operate on `/Library/LaunchDaemons` or `/usr/lib/systemd/system` (started at boot).
25+
If `sudo` is passed, operate on `/Library/LaunchDaemons` or `/usr/lib/systemd/system` (started at boot).
2626
Otherwise, operate on `~/Library/LaunchAgents` or `~/.config/systemd/user` (started at login).
2727
2828
[`sudo`] `brew services` [`list`] (`--json`) (`--debug`):
@@ -51,15 +51,24 @@ class Services < AbstractCommand
5151
[`sudo`] `brew services cleanup`:
5252
Remove all unused services.
5353
EOS
54-
flag "--file=", description: "Use the service file from this location to `start` the service."
55-
flag "--sudo-service-user=", description: "When run as root on macOS, run the service(s) as this user."
56-
flag "--max-wait=", description: "Wait at most this many seconds for `stop` to finish stopping a service. " \
57-
"Defaults to 60. Set this to zero (0) seconds to wait indefinitely."
58-
switch "--all", description: "Run <subcommand> on all services."
59-
switch "--json", description: "Output as JSON."
60-
switch "--no-wait", description: "Don't wait for `stop` to finish stopping the service."
61-
switch "--keep", description: "When stopped, don't unregister the service from launching at login (or boot)."
54+
flag "--file=",
55+
description: "Use the service file from this location to `start` the service."
56+
flag "--sudo-service-user=",
57+
description: "When run as root on macOS, run the service(s) as this user."
58+
flag "--max-wait=",
59+
description: "Wait at most this many seconds for `stop` to finish stopping a service. " \
60+
"Defaults to 60. Set this to zero (0) seconds to wait indefinitely."
61+
switch "--all",
62+
description: "Run <subcommand> on all services."
63+
switch "--json",
64+
description: "Output as JSON."
65+
switch "--no-wait",
66+
description: "Don't wait for `stop` to finish stopping the service."
67+
switch "--keep",
68+
description: "When stopped, don't unregister the service from launching at login (or boot)."
69+
6270
conflicts "--max-wait=", "--no-wait"
71+
6372
named_args %w[list info run start stop kill restart cleanup]
6473
end
6574

Library/Homebrew/cmd/tab.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class TabCmd < AbstractCommand
1717
To prevent removal, mark the formula as installed on request;
1818
to allow removal, mark the formula as not installed on request.
1919
EOS
20-
2120
switch "--installed-on-request",
2221
description: "Mark <installed_formula> or <installed_cask> as installed on request."
2322
switch "--no-installed-on-request",

Library/Homebrew/cmd/unalias.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class Unalias < AbstractCommand
1111
description <<~EOS
1212
Remove aliases.
1313
EOS
14+
1415
named_args :alias, min: 1
1516
end
1617

0 commit comments

Comments
 (0)