From: Davin McCall Date: Sun, 22 Dec 2019 10:25:05 +0000 (+1000) Subject: Fix --help option in dinitcheck X-Git-Tag: v0.8.1~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bdff49ce4c15f3c705485b17854b684b5e76c47b;p=oweals%2Fdinit.git Fix --help option in dinitcheck --- 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"