Skip to content

Commit

Permalink
docs: Apply review suggestions for #4106
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgrayson committed Aug 24, 2022
1 parent bcd1062 commit a0b1a03
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions src/builder/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1604,10 +1604,8 @@ impl Command {
/// strings. After this setting is set, this will be *the only* usage string
/// displayed to the user!
///
/// # Multiple usage lines
///
/// Multiple usage lines may be present in the usage argument, but some
/// rules need to be followed to ensure the usage lines are formatted
/// **NOTE:** Multiple usage lines may be present in the usage argument, but
/// some rules need to be followed to ensure the usage lines are formatted
/// correctly by the default help formatter:
///
/// - Do not indent the first usage line.
Expand All @@ -1627,19 +1625,6 @@ impl Command {
///
/// ```no_run
/// # use clap::{Command, Arg};
/// Command::new("myprog").override_usage(
/// "\
/// myapp -X [-a] [-b] <file>
/// myapp -Y [-c] <file1> <file2>
/// myapp -Z [-d|-e]"
/// )
/// # ;
/// ```
///
/// or equivalently, but with different string escaping:
///
/// ```no_run
/// # use clap::{Command, Arg};
/// Command::new("myprog")
/// .override_usage(
/// "myapp -X [-a] [-b] <file>\n \
Expand Down

0 comments on commit a0b1a03

Please sign in to comment.