Skip to content

Commit

Permalink
Merge pull request #4267 from jpgrayson/override-usage-help-4
Browse files Browse the repository at this point in the history
docs: Update multiline usage override rules
  • Loading branch information
epage committed Sep 27, 2022
2 parents f925ca8 + 7dd216b commit c7dd03e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/builder/command.rs
Expand Up @@ -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
Expand All @@ -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]"
/// )
/// # ;
Expand Down

0 comments on commit c7dd03e

Please sign in to comment.