Browse Source

feat: continue instead of exit on ctrl-c

main
fdai7451 2 years ago
parent
commit
cc1b1838a6
  1. 5
      src/main.rs

5
src/main.rs

@ -35,7 +35,10 @@ fn main() -> Result<()> {
eprintln!("Malformed arguments: {}", args)
}
},
Err(ReadlineError::Interrupted) | Err(ReadlineError::Eof) => {
Err(ReadlineError::Interrupted) => {
continue;
}
Err(ReadlineError::Eof) => {
break;
}
Err(err) => {

Loading…
Cancel
Save