From cc82d13a4f80a5a2483581dd679f06772a9e3a19 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 4 Jan 2022 15:05:41 -0600 Subject: add layout loading --- src/argent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/argent.c') 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); -- cgit v1.2.1