mirror of
https://github.com/uutils/coreutils
synced 2024-09-06 16:03:44 +00:00
comm: exit with status 1 on invalid arguments
This commit is contained in:
parent
81a88e94d5
commit
ea18515855
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue