From 81f63a4ebd511befc49332db351ce11b4fef40d6 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Wed, 5 Jun 2019 17:37:42 +0200 Subject: pi_stress: Allow short command line arguments Add optstring to getopt_long() command line parser to support the short options as it documented in the man page and also in the usage help text. Signed-off-by: Daniel Wagner Signed-off-by: John Kacur --- src/pi_tests/pi_stress.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pi_tests/pi_stress.c b/src/pi_tests/pi_stress.c index ac7646c..543106b 100644 --- a/src/pi_tests/pi_stress.c +++ b/src/pi_tests/pi_stress.c @@ -1322,9 +1322,8 @@ int process_sched_line(const char *arg) void process_command_line(int argc, char **argv) { int opt; - while ((opt = getopt_long(argc, argv, "+", options, NULL)) != -1) { + while ((opt = getopt_long(argc, argv, "+ht:vqi:g:rs:pdVum", options, NULL)) != -1) { switch (opt) { - case '?': case 'h': usage(); exit(0); -- cgit v1.2.3