mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-26 14:00:51 +00:00
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:
parent
826e69a10c
commit
118d0cc31d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue