Flag poolnodecommand() (ippool -a and ippool -r) command line syntax

errors.
This commit is contained in:
cy 2017-06-20 12:31:58 +00:00
parent d4d94445f1
commit 5851e7d714

View File

@ -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;