Skip to content

Commit

Permalink
fix(cli): Don't crash when no subcommand is present
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 17, 2022
1 parent 428de7c commit 7eed049
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7eed049

Please sign in to comment.