analytics: rearrange help into subcommand format
This commit is contained in:
parent
0acfb4b819
commit
b6809f2dda
@ -10,12 +10,17 @@ module Homebrew
|
||||
usage_banner <<~EOS
|
||||
`analytics` [<subcommand>]
|
||||
|
||||
If `on` or `off` is passed, turn Homebrew's analytics on or off respectively.
|
||||
|
||||
If `state` is passed, display the current anonymous user behaviour analytics state.
|
||||
Control Homebrew's anonymous aggregate user behaviour analytics.
|
||||
Read more at <https://docs.brew.sh/Analytics>.
|
||||
|
||||
If `regenerate-uuid` is passed, regenerate the UUID used in Homebrew's analytics.
|
||||
`brew analytics` [`state`]:
|
||||
Display the current state of Homebrew's analytics.
|
||||
|
||||
`brew analytics` [`on`|`off`]:
|
||||
Turn Homebrew's analytics on or off respectively.
|
||||
|
||||
`brew analytics regenerate-uuid`:
|
||||
Regenerate the UUID used for Homebrew's analytics.
|
||||
EOS
|
||||
switch :verbose
|
||||
switch :debug
|
||||
@ -41,7 +46,7 @@ module Homebrew
|
||||
when "regenerate-uuid"
|
||||
Utils::Analytics.regenerate_uuid!
|
||||
else
|
||||
raise UsageError, "unknown subcommand"
|
||||
raise UsageError, "unknown subcommand: #{args.named.first}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user