diff options
author | sanine <sanine.not@pm.me> | 2022-01-04 15:05:41 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-01-04 15:05:41 -0600 |
commit | cc82d13a4f80a5a2483581dd679f06772a9e3a19 (patch) | |
tree | 6cb096ade3e7db59cc91cd836d6e7de95a01cec4 /src/argent.c | |
parent | a026db7389c15eb5a8905e6f04eb3a92bf31f9bc (diff) |
add layout loading
Diffstat (limited to 'src/argent.c')
-rw-r--r-- | src/argent.c | 3 |
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); |