mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-29 17:09:59 -07:00
exit failsafe_reader if incorrect args are supplied
This commit is contained in:
@@ -11,6 +11,7 @@ fn main() -> diag_device::DiagResult<()> {
|
||||
let args: Vec<String> = std::env::args().collect();
|
||||
if args.len() != 2 {
|
||||
println!("Usage: {} /path/to/failsafe/file", args[0]);
|
||||
std::process::exit(1);
|
||||
}
|
||||
let mut failsafe_reader = FailsafeFileReader::new(&args[1])?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user