Fix --help option in dinitcheck
authorDavin McCall <davmac@davmac.org>
Sun, 22 Dec 2019 10:25:05 +0000 (20:25 +1000)
committerDavin McCall <davmac@davmac.org>
Sun, 22 Dec 2019 10:25:05 +0000 (20:25 +1000)
src/dinitcheck.cc

index b074df15200bb41e39dde511b7efb8abaf932bc2..140ee2ba4189c5b9b34f0dc6489abc98a5ada1d5 100644 (file)
@@ -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 <dir>, -d <dir>\n"