The code was changed to use ':' in getopt_long() but these were left
over by mistake causing weird random errors when using these options
depending on the order they were fed.
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
case 'p':
errno = 0;
ctl->pid = strtos32_or_err(optarg, _("invalid PID argument"));
- optind++;
break;
case 's':
ctl->system = 1;
ctl->util_min = strtos32_or_err(optarg, _("invalid util_min argument"));
ctl->util_min_set = 1;
validate_util(ctl->util_min);
- optind++;
break;
case 'M':
ctl->util_max = strtos32_or_err(optarg, _("invalid util_max argument"));
ctl->util_max_set = 1;
validate_util(ctl->util_max);
- optind++;
break;
case 'V':
print_version(EXIT_SUCCESS);