mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
c90a4eabae
In looking at other help output, I noticed that they use two spaces, in place of clap's 4, and it doesn't suffer from legibility. If it doesn't make the output worse, let's go ahead and make it as dense so we fit more content on the screen. This is a part of #4132
24 lines
429 B
Rust
24 lines
429 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,
|
|
);
|
|
}
|