Fix --version

pull/526/head
jsteube 8 years ago
parent 57cb082fda
commit 5b2fcc4a18

@ -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;
}

@ -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)
{

Loading…
Cancel
Save