mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-20 06:33:14 +00:00
cli: disable --version on subcommands
`jj st --version` and `jj op log --version` don't make any sense.
This commit is contained in:
parent
4e9be8d2a4
commit
d7cc09e918
@ -1033,6 +1033,7 @@ fn get_app<'a, 'b>() -> App<'a, 'b> {
|
||||
.subcommand(SubCommand::with_name("reindex").about("Rebuild commit index"));
|
||||
App::new("Jujutsu")
|
||||
.global_setting(clap::AppSettings::ColoredHelp)
|
||||
.global_setting(clap::AppSettings::VersionlessSubcommands)
|
||||
.setting(clap::AppSettings::SubcommandRequiredElseHelp)
|
||||
.version(crate_version!())
|
||||
.author("Martin von Zweigbergk <martinvonz@google.com>")
|
||||
|
Loading…
x
Reference in New Issue
Block a user