From 7eed0495215394abec9b083588c8297db93d3199 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 17 Aug 2022 11:56:19 -0500 Subject: [PATCH] fix(cli): Don't crash when no subcommand is present --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 1ebb3c00..b66fb4d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -109,6 +109,8 @@ fn cmd() -> Command<'static> { .subcommand( Command::new("semver-checks") .about("Check your crate for semver violations.") + .subcommand_required(true) + .arg_required_else_help(true) .subcommand( Command::new("diff-files") .arg_required_else_help(true)