Skip to content

Commit

Permalink
Merge pull request #3 from ArshilHapani/0.1.2
Browse files Browse the repository at this point in the history
0.1.2
  • Loading branch information
ArshilHapani authored Nov 10, 2024
2 parents 48e58d7 + 5415662 commit db7cd19
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ use utils::{print_headers_with_options, print_help_menu};

fn main() {
let args: Vec<String> = args().collect();
if args.contains(&"-h".to_string()) || args.contains(&"--help".to_string()) {
let show_help = args.contains(&"-h".to_string())
|| args.contains(&"--help".to_string())
|| args.len() == 1
|| args.is_empty();
if show_help {
print_help_menu();
return;
}
Expand Down

0 comments on commit db7cd19

Please sign in to comment.