Exit with zero if help requested
This, together with commit 0b6cd394 of OpenWSMAN, closes issue #4
diff --git a/src/wseventmgr.c b/src/wseventmgr.c
index 1c760c6..7029034 100644
--- a/src/wseventmgr.c
+++ b/src/wseventmgr.c
@@ -272,6 +272,9 @@
}
return FALSE;
}
+ else if (retval == 2) { /* found help */
+ exit(0);
+ }
if (argc > 2) {
_action = argv[1];
diff --git a/src/wsman.c b/src/wsman.c
index 7aa6372..95d6865 100644
--- a/src/wsman.c
+++ b/src/wsman.c
@@ -373,6 +373,9 @@
}
return FALSE;
}
+ else if (retval == 2) { /* help */
+ exit(0);
+ }
if (my_version) {
fprintf(stdout, PACKAGE_STRING " (" PACKAGE_BUILDTS ")\n\n");