From b4e5531f23f2b5b89f077ea27c8bfb530f6fde31 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 20 Aug 2022 19:54:21 +0200 Subject: main: Exit with `EX_NOINPUT` when no password copy options are present I wrote this program before I started using sysexits. Now, a different exit code makes more sense. --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 711b9f9..289a09f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -141,8 +141,7 @@ fn main() { let copy_options = parse_options(input); if copy_options.is_empty() { - // TODO: 66 noinput - process::exit(1); + process::exit(exitcode::NOINPUT); } let mut term = Terminal::new().unwrap(); -- cgit v1.2.3