From 3adcb5fd61f38e41fa94c816f58545541daeabe8 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Mon, 20 Jun 2016 18:26:54 +0200 Subject: [PATCH] fix(core): Exit with correct status code --- src/lemonbuddy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lemonbuddy.cpp b/src/lemonbuddy.cpp index e959569f..33823fcc 100644 --- a/src/lemonbuddy.cpp +++ b/src/lemonbuddy.cpp @@ -66,7 +66,7 @@ int main(int argc, char **argv) * Parse command line arguments */ if (argc < 2 || cli::is_option(argv[1], "-h", "--help") || argv[1][0] == '-') - cli::usage(usage, argc > 1); + cli::usage(usage, (argc > 1 && cli::is_option(argv[1], "-h", "--help"))); cli::parse(2, argc, argv); if (cli::has_option("help")) cli::usage(usage);