Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(help): Collapse usage to one line #4188

Merged
merged 1 commit into from
Sep 7, 2022
Merged

fix(help): Collapse usage to one line #4188

merged 1 commit into from
Sep 7, 2022

Conversation

epage
Copy link
Member

@epage epage commented Sep 7, 2022

After looking at more examples, I've become more attached to this briefer format.

Part of #4132

After looking at more examples, I've become more attached to this
briefer format.

Part of clap-rs#4132
@epage epage merged commit a228df3 into clap-rs:master Sep 7, 2022
@epage epage deleted the usage branch September 7, 2022 16:19
@epage epage mentioned this pull request Sep 7, 2022
jpgrayson added a commit to jpgrayson/clap that referenced this pull request Sep 27, 2022
The styling of usage has changed in clap-rs#4188 such that the usage string is on
the same line as the "Usage:" title. Previously, the usage went on the line
below the title. As such, the rules have changed for how to make a
multiline usage format correctly.

These updated rules achieve the following output for the documented
example:

    Usage: myapp -X [-a] [-b] <file>
           myapp -Y [-c] <file1> <file2>
	   myapp -Z [-d|-e]
jpgrayson added a commit to jpgrayson/clap that referenced this pull request Sep 27, 2022
The styling of usage has changed in clap-rs#4188 such that the usage string is on
the same line as the "Usage:" title. Previously, the usage went on the line
below the title. As such, the rules have changed for how to make a
multiline usage format correctly.

These updated rules achieve the following output for the documented
example:

    Usage: myapp -X [-a] [-b] <file>
           myapp -Y [-c] <file1> <file2>
           myapp -Z [-d|-e]

Relates-to: clap-rs#4132
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