38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
From 7437ee24d0638a27a5d5ca84389dafe320a7dc5b Mon Sep 17 00:00:00 2001
|
|
From: John Kacur <jkacur@redhat.com>
|
|
Date: Thu, 23 Jan 2020 19:59:26 +0100
|
|
Subject: [PATCH 8/8] rt-tests: svsematest: Display help with an error message
|
|
for -h
|
|
|
|
Display help without an error message if the user uses the -h option
|
|
|
|
Signed-off-by: John Kacur <jkacur@redhat.com>
|
|
---
|
|
src/svsematest/svsematest.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/svsematest/svsematest.c b/src/svsematest/svsematest.c
|
|
index 7c15393fe1be..023a303fd7df 100644
|
|
--- a/src/svsematest/svsematest.c
|
|
+++ b/src/svsematest/svsematest.c
|
|
@@ -281,7 +281,7 @@ static void process_options (int argc, char *argv[])
|
|
{"help", no_argument, NULL, '?'},
|
|
{NULL, 0, NULL, 0}
|
|
};
|
|
- int c = getopt_long (argc, argv, "a::b:d:f::i:l:D:p:St::",
|
|
+ int c = getopt_long (argc, argv, "a::b:d:f::i:l:D:p:St::h",
|
|
long_options, &option_index);
|
|
if (c == -1)
|
|
break;
|
|
@@ -335,6 +335,7 @@ static void process_options (int argc, char *argv[])
|
|
else
|
|
num_threads = max_cpus;
|
|
break;
|
|
+ case 'h': error = 1; break;
|
|
case '?': error = 1; break;
|
|
}
|
|
}
|
|
--
|
|
2.20.1
|
|
|