Skip to content

Commit

Permalink
fix: panic when no sub-command is specified.
Browse files Browse the repository at this point in the history
For instance, this was panicking `yr -C config.toml`.
  • Loading branch information
plusvic committed Jan 30, 2025
1 parent ddd6f38 commit 33192f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ pub fn cli() -> Command {
.long_help(help::CONFIG_FILE),
)
.help_template(APP_HELP_TEMPLATE)
.subcommand_required(true)
.subcommands(vec![
commands::scan(),
commands::compile(),
Expand Down

0 comments on commit 33192f0

Please sign in to comment.