mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 23:32:39 +00:00
Merge pull request #293 from ebfe/comm
comm: exit with status 1 on invalid arguments
This commit is contained in:
commit
154932e597
1 changed files with 1 additions and 1 deletions
|
@ -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