Identify command line syntax errors in poolflush() (ippool -F).

This commit is contained in:
Cy Schubert 2017-06-11 03:56:13 +00:00
parent a8f3fd8253
commit 0fc43621ce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319820

View File

@ -557,8 +557,14 @@ poolflush(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 (opts & OPT_DEBUG)
fprintf(stderr, "poolflush: opts = %#x\n", opts);