aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2022-08-20 19:54:21 +0200
committerTeddy Wing2022-08-20 19:54:21 +0200
commitb4e5531f23f2b5b89f077ea27c8bfb530f6fde31 (patch)
tree0c490bf7344cc3cf9a9eb804a77829e60208b120 /src
parent29bb1bdcd208d52f910ffb87b652fa3cafd999f2 (diff)
downloadPassextract-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.
Diffstat (limited to 'src')
-rw-r--r--src/main.rs3
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();