diff --git a/src/main.c b/src/main.c index 701d4d797..eaaeac46a 100644 --- a/src/main.c +++ b/src/main.c @@ -72,7 +72,7 @@ int main (int argc, char **argv) if (user_options->version == true) { - printf ("%s", VERSION_TAG); + printf ("%s\n", VERSION_TAG); return 0; } diff --git a/src/user_options.c b/src/user_options.c index d3fc4ef05..8bc20cce3 100644 --- a/src/user_options.c +++ b/src/user_options.c @@ -729,7 +729,15 @@ int user_options_sanity (const user_options_t *user_options) bool show_error = true; - if (user_options->benchmark == true) + if (user_options->version == true) + { + show_error = false; + } + else if (user_options->usage == true) + { + show_error = false; + } + else if (user_options->benchmark == true) { if (user_options->hc_argc == 0) {