Flag poollist() (ippool -l) command line syntax errors.
This commit is contained in:
parent
015d7db6b6
commit
a0489e3eeb
@ -700,8 +700,14 @@ poollist(argc, argv)
|
||||
case 'v' :
|
||||
opts |= OPT_VERBOSE;
|
||||
break;
|
||||
default :
|
||||
usage(argv[0]);
|
||||
break; /* keep compiler happy */
|
||||
}
|
||||
|
||||
if (argc - optind > 0)
|
||||
usage(argv[0]);
|
||||
|
||||
if (opts & OPT_DEBUG)
|
||||
fprintf(stderr, "poollist: opts = %#x\n", opts);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user