Flag poollist() (ippool -l) command line syntax errors.

This commit is contained in:
Cy Schubert 2017-06-10 16:42:39 +00:00
parent 015d7db6b6
commit a0489e3eeb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319794

View File

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