cli: clarify that --help provides more help than -h

It turns out that `--help` provides a longer version of the help text
than `-h` does. I only discovered that because I was wondering what
the difference between `clap::App::about()` and
`clap::App::long_about()` was. There's clap-rs/clap#1015 for tracking
it in clap, but let's clarify it ourselves for now by changing the
help text for `-h/--help`.
This commit is contained in:
Martin von Zweigbergk 2021-08-28 10:37:38 -07:00
parent 826e69a10c
commit 118d0cc31d

View file

@ -1330,7 +1330,7 @@ See `jj concepts branches` for information about branches.",
.about("Show help about the working copy"),
)
.subcommand(SubCommand::with_name("operations").about("Show help about operations"));
let help_message = "Print help information";
let help_message = "Print help information, more help with --help than with -h";
let mut app = App::new("Jujutsu")
.global_setting(clap::AppSettings::ColoredHelp)
.global_setting(clap::AppSettings::VersionlessSubcommands)