Skip to content

Commit ce263f8

Browse files
committed
🐛 fix(help): correct help header format
- fix help header format to align with clap's new version
1 parent 30f9268 commit ce263f8

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

tests/builder/subcommands.rs

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -639,19 +639,18 @@ fn duplicate_subcommand_alias() {
639639
#[test]
640640
fn test_help_header() {
641641
static VISIBLE_ALIAS_HELP: &str = "\
642-
Usage: clap-test [COMMAND]
643-
644-
Commands:
645-
help Print this message or the help of the given subcommand(s)
646-
647-
Test commands:
648-
test Some help
649-
650-
Options:
651-
-h, --help Print help
652-
-V, --version Print version
653-
";
654-
642+
Usage: clap-test [COMMAND]
643+
644+
Commands:
645+
help Print this message or the help of the given subcommand(s)
646+
647+
Test commands:
648+
test Some help
649+
650+
Options:
651+
-h, --help Print help
652+
-V, --version Print version
653+
";
655654
let cmd = Command::new("clap-test")
656655
.version("2.6")
657656
.subcommand(

0 commit comments

Comments
 (0)