mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
9a645d2d19
After looking at more examples, I've become more attached to this briefer format. Part of #4132
24 lines
441 B
Rust
24 lines
441 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,
|
|
);
|
|
}
|