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