fop(1): finished implementing sysexits

This commit is contained in:
Emma Tebibyte 2023-12-27 22:47:06 -07:00
parent 3355cb3dc3
commit b74bbd6c92
Signed by untrusted user: emma
GPG Key ID: 06FA419A1698C270

View File

@ -23,7 +23,7 @@ use std::{
}; };
extern crate sysexits; extern crate sysexits;
use sysexits::EX_USAGE; use sysexits::{ EX_DATAERR, EX_USAGE };
fn main() { fn main() {
let argv = args().collect::<Vec<String>>(); let argv = args().collect::<Vec<String>>();
@ -67,7 +67,7 @@ fn main() {
argv[0], argv[0],
index.to_string() index.to_string()
); );
exit(1); exit(EX_DATAERR);
}); });
if let Some(mut child_stdin) = spawned.stdin.take() { if let Some(mut child_stdin) = spawned.stdin.take() {