comm: exit with status 1 on invalid arguments

This commit is contained in:
Michael Gehring 2014-06-22 13:57:42 +02:00
parent 81a88e94d5
commit ea18515855

View file

@ -125,7 +125,7 @@ pub fn uumain(args: Vec<String>) -> 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;
}