clap/tests/builder/display_order.rs
Ed Page 65b5b5f7bf fix(help): Remove name/version/author from help
This is to help shorten it and polish it by removing redundant
information.

This is a part of #4132
2022-08-31 15:06:15 -05:00

25 lines
445 B
Rust

use super::utils;
use clap::Command;
#[test]
fn very_large_display_order() {
let cmd = Command::new("test").subcommand(Command::new("sub").display_order(usize::MAX));
utils::assert_output(
cmd,
"test --help",
"\
Usage:
test [COMMAND]
Commands:
help Print this message or the help of the given subcommand(s)
sub
Options:
-h, --help Print help information
",
false,
);
}