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