dev-cmd/contributions: Better usage string & named args numbering
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
parent
0bb8a06193
commit
4874602f25
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user