brew info --analytics --days=30 and --days 30 both are valid. Added this for --category as well.

This commit is contained in:
rmnull 2020-06-20 01:38:37 +05:30
parent 6049227c0a
commit 0f4e61062c
No known key found for this signature in database
GPG Key ID: 35BAB82D31EFAD91

View File

@ -29,11 +29,11 @@ module Homebrew
description: "List global Homebrew analytics data or, if specified, installation and "\ description: "List global Homebrew analytics data or, if specified, installation and "\
"build error data for <formula> (provided neither `HOMEBREW_NO_ANALYTICS` "\ "build error data for <formula> (provided neither `HOMEBREW_NO_ANALYTICS` "\
"nor `HOMEBREW_NO_GITHUB_API` are set)." "nor `HOMEBREW_NO_GITHUB_API` are set)."
flag "--days", flag "--days=",
depends_on: "--analytics", depends_on: "--analytics",
description: "How many days of analytics data to retrieve. "\ description: "How many days of analytics data to retrieve. "\
"The value for <days> must be `30`, `90` or `365`. The default is `30`." "The value for <days> must be `30`, `90` or `365`. The default is `30`."
flag "--category", flag "--category=",
depends_on: "--analytics", depends_on: "--analytics",
description: "Which type of analytics data to retrieve. "\ description: "Which type of analytics data to retrieve. "\
"The value for <category> must be `install`, `install-on-request` or `build-error`; "\ "The value for <category> must be `install`, `install-on-request` or `build-error`; "\