Flag poolnodecommand() (ippool -a and ippool -r) command line syntax
errors.
This commit is contained in:
parent
d4d94445f1
commit
5851e7d714
@ -210,8 +210,14 @@ poolnodecommand(remove, argc, argv)
|
||||
case 'v' :
|
||||
opts |= OPT_VERBOSE;
|
||||
break;
|
||||
default :
|
||||
usage(argv[0]);
|
||||
break; /* keep compiler happy */
|
||||
}
|
||||
|
||||
if (argc - 1 - optind > 0)
|
||||
usage(argv[0]);
|
||||
|
||||
if (argv[optind] != NULL && ipset == 0) {
|
||||
if (setnodeaddr(type, role, ptr, argv[optind]) == 0)
|
||||
ipset = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user