mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
26 lines
465 B
Rust
26 lines
465 B
Rust
use crate::utils;
|
|
|
|
use clap::Command;
|
|
|
|
#[test]
|
|
fn very_large_display_order() {
|
|
let cmd = Command::new("test").subcommand(Command::new("sub").display_order(usize::MAX));
|
|
|
|
assert!(utils::compare_output(
|
|
cmd,
|
|
"test --help",
|
|
"test
|
|
|
|
USAGE:
|
|
test [SUBCOMMAND]
|
|
|
|
OPTIONS:
|
|
-h, --help Print help information
|
|
|
|
SUBCOMMANDS:
|
|
help Print this message or the help of the given subcommand(s)
|
|
sub
|
|
",
|
|
false
|
|
));
|
|
}
|