From 50058d8a311d10cc69bc3f5b8d595602c8f50cfb Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sat, 23 Oct 2021 20:46:41 -0700 Subject: [PATCH] cli: show help when `jj git remote` is called without subcommand --- src/commands.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands.rs b/src/commands.rs index c83406a8b..78282330b 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -1074,6 +1074,7 @@ https://github.com/martinvonz/jj/blob/main/docs/git-comparison.md.\ .subcommand( SubCommand::with_name("remote") .about("Manage Git remotes") + .setting(clap::AppSettings::SubcommandRequiredElseHelp) .subcommand( SubCommand::with_name("add") .about("Add a Git remote")