mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-27 17:08:12 +00:00
Fix --version
This commit is contained in:
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…
Reference in New Issue
Block a user