By not assigning opterr, getopt will print its own error message that
includes information about whether an option is unknown or just requires
an additional argument.
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
enter_exec_path( argv );
- opterr = 0;
while ((c = getopt(argc, argv, optstr)) != -1) {
switch (c) {
case '3':
sscanf(optarg, "%d,%d", &specified_disp_id, &specified_mode_num);
break;
default:
- fprintf(stderr, "unknown option %c\n", c);
/* fall through */
case 'h':
usage(argv[0]);