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:
parent
df86ee8c21
commit
2f1fd1584e
@ -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++];
|
||||
|
Loading…
Reference in New Issue
Block a user