Skip to content

Commit c021dbb

Browse files
committed
test: Fix help header format
- correct the format of the help header to align with the expected output
1 parent 8c43bdc commit c021dbb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/builder/subcommands.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -639,18 +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-
";
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+
";
654654

655655
let cmd = Command::new("clap-test")
656656
.version("2.6")

0 commit comments

Comments
 (0)