Skip to content

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