summaryrefslogtreecommitdiff
path: root/src/argent.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-01-04 15:05:41 -0600
committersanine <sanine.not@pm.me>2022-01-04 15:05:41 -0600
commitcc82d13a4f80a5a2483581dd679f06772a9e3a19 (patch)
tree6cb096ade3e7db59cc91cd836d6e7de95a01cec4 /src/argent.c
parenta026db7389c15eb5a8905e6f04eb3a92bf31f9bc (diff)
add layout loading
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);