Skip to content

Commit

Permalink
* Fixed another bug where -h will not show help screen
Browse files Browse the repository at this point in the history
  • Loading branch information
CKingX committed Apr 18, 2022
1 parent f5aaaf1 commit c52c1e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ fn main() {
}
process::exit(0);
}

if args.contains(&"--help".to_string()) || args.contains(&"-h".to_string()) {
println!("{HELP}");
process::exit(0);
}

let filename;
let device_name;

Expand Down

0 comments on commit c52c1e6

Please sign in to comment.