1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00

man-generator: catch missing command name

This commit is contained in:
Heinz Mauelshagen 2017-03-30 00:39:26 +02:00
parent df86ee8c21
commit 2f1fd1584e

View File

@ -3439,6 +3439,10 @@ int main(int argc, char *argv[])
if (optind < argc)
cmdname = strdup(argv[optind++]);
else {
log_error("Missing command name");
exit(EXIT_FAILURE);
}
if (optind < argc)
desfile = argv[optind++];