mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 15:27:16 +00:00
Merge pull request #4267 from jpgrayson/override-usage-help-4
docs: Update multiline usage override rules
This commit is contained in:
commit
c7dd03e7ea
1 changed files with 3 additions and 3 deletions
|
@ -1662,7 +1662,7 @@ impl Command {
|
|||
/// correctly by the default help formatter:
|
||||
///
|
||||
/// - Do not indent the first usage line.
|
||||
/// - Indent all subsequent usage lines with four spaces.
|
||||
/// - Indent all subsequent usage lines with seven spaces.
|
||||
/// - The last line must not end with a newline.
|
||||
///
|
||||
/// # Examples
|
||||
|
@ -1680,8 +1680,8 @@ impl Command {
|
|||
/// # use clap::{Command, Arg};
|
||||
/// Command::new("myprog")
|
||||
/// .override_usage(
|
||||
/// "myapp -X [-a] [-b] <file>\n \
|
||||
/// myapp -Y [-c] <file1> <file2>\n \
|
||||
/// "myapp -X [-a] [-b] <file>\n \
|
||||
/// myapp -Y [-c] <file1> <file2>\n \
|
||||
/// myapp -Z [-d|-e]"
|
||||
/// )
|
||||
/// # ;
|
||||
|
|
Loading…
Add table
Reference in a new issue