Skip to content

fix: show a single required argument without a repeat marker in usage - #2539

Open
SudeepGowda55 wants to merge 1 commit into
urfave:mainfrom
SudeepGowda55:args-usage-single
Open

SudeepGowda55 wants to merge 1 commit into
urfave:mainfrom
SudeepGowda55:args-usage-single

Conversation

@SudeepGowda55

Copy link
Copy Markdown

What type of PR is this?

  • bug

What this PR does / why we need it:

An ArgumentsBase with Min: 1, Max: 1 accepts exactly one value, but its usage text was name [name ...], which tells the user they can pass more. It now renders as name, the same as a required single-value argument.

Which issue(s) this PR fixes:

None filed.

Testing

Updated the one case in TestArgsUsage (it was asserting the old output); it fails without the change.

Release Notes

Usage text for an args argument with Min 1 and Max 1 no longer suggests it can be repeated.

@SudeepGowda55
SudeepGowda55 requested a review from a team as a code owner November 14, 2026 16:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant