Merge pull request #293 from ebfe/comm

comm: exit with status 1 on invalid arguments
This commit is contained in:
Oly Mi 2014-06-22 18:18:04 +04:00
commit 154932e597

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;
}