Browse Source

feat: continue instead of exit on ctrl-c

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

5
src/main.rs

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

Loading…
Cancel
Save