From ea185158553859f0e4f1da6f2f8e2ad7f71a15e1 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Sun, 22 Jun 2014 13:57:42 +0200 Subject: [PATCH] comm: exit with status 1 on invalid arguments --- comm/comm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comm/comm.rs b/comm/comm.rs index 7f0b425c2..7babb946d 100644 --- a/comm/comm.rs +++ b/comm/comm.rs @@ -125,7 +125,7 @@ pub fn uumain(args: Vec) -> int { println!(""); print(getopts::usage("Compare sorted files line by line.", opts.as_slice()).as_slice()); if matches.free.len() != 2 { - return 0; + return 1; } return 0; }