dev-cmd/contributions: Better usage string & named args numbering

Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
Issy Long 2022-08-03 17:43:24 +01:00 committed by GitHub
parent 0bb8a06193
commit 4874602f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ module Homebrew
sig { returns(CLI::Parser) }
def contributions_args
Homebrew::CLI::Parser.new do
usage_banner "`contributions` <email|name>"
usage_banner "`contributions` <email|name> [<--repositories>`=`]"
description <<~EOS
Contributions to Homebrew repos for a user.
@ -34,7 +34,7 @@ module Homebrew
flag "--to=",
description: "Date (ISO-8601 format) to stop searching contributions."
named_args min: 1, max: 1
named_args number: 1
end
end