1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-27 17:08:12 +00:00

Fix --version

This commit is contained in:
jsteube 2016-10-03 01:30:58 +02:00
parent 57cb082fda
commit 5b2fcc4a18
2 changed files with 10 additions and 2 deletions

View File

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

View File

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