Skip to content

Bugfix for default value UI when there's no help description#6205

Merged
epage merged 2 commits intoclap-rs:masterfrom
maheshbansod:default-val-no-desc
Jan 2, 2026
Merged

Bugfix for default value UI when there's no help description#6205
epage merged 2 commits intoclap-rs:masterfrom
maheshbansod:default-val-no-desc

Conversation

@maheshbansod
Copy link
Contributor

@maheshbansod maheshbansod commented Jan 1, 2026

  • Demonstrate test showing current behaviour
    The first commit of this PR shows the current behaviour i.e. if there is no description to an argument, then the default value appears on the same line as the last possible value in case there are multiple values for the --help flag.
  • Update the test to show new behaviour
  • Add fix: default value should show up on a separate line even if there's no help description in case there are multiple possible values. related to Default value on separate line in case of multiple possible values + empty default value fix. #6204

@maheshbansod maheshbansod force-pushed the default-val-no-desc branch 2 times, most recently from 458d6d2 to 03dcbce Compare January 1, 2026 13:20
@maheshbansod maheshbansod changed the title WIP - bugfix for default value UI when there's no help description Bugfix for default value UI when there's no help description Jan 1, 2026
@maheshbansod maheshbansod requested a review from epage January 1, 2026 20:37
@epage
Copy link
Member

epage commented Jan 2, 2026

Thanks!

@epage epage merged commit d68caa8 into clap-rs:master Jan 2, 2026
25 checks passed
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.

2 participants