Skip to content

Commit c7dd03e

Browse files
authored
Merge pull request #4267 from jpgrayson/override-usage-help-4
docs: Update multiline usage override rules
2 parents f925ca8 + 7dd216b commit c7dd03e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/builder/command.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ impl Command {
16621662
/// correctly by the default help formatter:
16631663
///
16641664
/// - Do not indent the first usage line.
1665-
/// - Indent all subsequent usage lines with four spaces.
1665+
/// - Indent all subsequent usage lines with seven spaces.
16661666
/// - The last line must not end with a newline.
16671667
///
16681668
/// # Examples
@@ -1680,8 +1680,8 @@ impl Command {
16801680
/// # use clap::{Command, Arg};
16811681
/// Command::new("myprog")
16821682
/// .override_usage(
1683-
/// "myapp -X [-a] [-b] <file>\n \
1684-
/// myapp -Y [-c] <file1> <file2>\n \
1683+
/// "myapp -X [-a] [-b] <file>\n \
1684+
/// myapp -Y [-c] <file1> <file2>\n \
16851685
/// myapp -Z [-d|-e]"
16861686
/// )
16871687
/// # ;

0 commit comments

Comments
 (0)