From bdff49ce4c15f3c705485b17854b684b5e76c47b Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Sun, 22 Dec 2019 20:25:05 +1000 Subject: [PATCH] Fix --help option in dinitcheck --- src/dinitcheck.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dinitcheck.cc b/src/dinitcheck.cc index b074df1..140ee2b 100644 --- a/src/dinitcheck.cc +++ b/src/dinitcheck.cc @@ -86,7 +86,7 @@ int main(int argc, char **argv) return 1; } } - else if (strcmp(argv[i], "--help")) { + else if (strcmp(argv[i], "--help") == 0) { cout << "dinitcheck: check dinit service descriptions\n" " --help display help\n" " --services-dir , -d \n" -- 2.25.1