Skip to content

Commit

Permalink
fix: Show help when no args are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Jan 1, 2024
1 parent 23b2f39 commit 6951082
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ pub fn run() -> Result<()> {
if args[bin_index] == "bin" {
bin_index += 1;
}
if bin_index >= args.len() {
app.print_long_help()?;
}

let binary_name = args[bin_index].clone();
args.drain(0..(bin_index + 1));
Expand Down

0 comments on commit 6951082

Please sign in to comment.