diff options
author | Teddy Wing | 2022-08-20 19:54:21 +0200 |
---|---|---|
committer | Teddy Wing | 2022-08-20 19:54:21 +0200 |
commit | b4e5531f23f2b5b89f077ea27c8bfb530f6fde31 (patch) | |
tree | 0c490bf7344cc3cf9a9eb804a77829e60208b120 | |
parent | 29bb1bdcd208d52f910ffb87b652fa3cafd999f2 (diff) | |
download | Passextract-b4e5531f23f2b5b89f077ea27c8bfb530f6fde31.tar.bz2 |
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.
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 1 insertions, 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(); |