package_repo: command_create(): Fix argument count check
This commit is contained in:
@@ -155,7 +155,7 @@ command_create(int argc, const char* const* argv)
|
|||||||
|
|
||||||
// The remaining arguments are the repository info file plus one or more
|
// The remaining arguments are the repository info file plus one or more
|
||||||
// package files, i.e. at least two more arguments.
|
// package files, i.e. at least two more arguments.
|
||||||
if (optind + 2 >= argc)
|
if (optind + 2 > argc)
|
||||||
print_usage_and_exit(true);
|
print_usage_and_exit(true);
|
||||||
|
|
||||||
const char* repositoryInfoFileName = argv[optind++];
|
const char* repositoryInfoFileName = argv[optind++];
|
||||||
|
|||||||
Reference in New Issue
Block a user