Returns 2 on non-usage error

This commit is contained in:
Pierre Pronchery 2006-04-13 20:34:41 +00:00
parent 33bc3d04f1
commit 5bc45b6418

View File

@ -103,5 +103,5 @@ int main(int argc, char * argv[])
default:
return _usage();
}
return _cat(flagu, argc - optind, &argv[optind]);
return _cat(flagu, argc - optind, &argv[optind]) == 0 ? 0 : 2;
}