summaryrefslogtreecommitdiff
path: root/src/argent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/argent.c')
-rw-r--r--src/argent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/argent.c b/src/argent.c
index 97d6862..2c10472 100644
--- a/src/argent.c
+++ b/src/argent.c
@@ -31,7 +31,8 @@ int main(int argc, char **argv)
struct argent_options opts;
int error = parse_options(&opts, argc, argv);
if (error)
- return 1;
+ // error of '2' indicates -h was passed
+ return error == 2 ? 0 : 1;
argent_log(INFO, "log level: %s", level_string(argent_log_level));
argent_log(INFO, "configuration file: %s", opts.conf_filename);