1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-29 00:51:23 +00:00

Fix --help and --version

This commit is contained in:
jsteube 2016-09-22 19:31:17 +02:00
parent 65b5918037
commit 6238aa884b

View File

@ -205,6 +205,20 @@ int main (int argc, char **argv)
if (rc_user_options_parse1 == -1) return -1;
if (user_options->version == true)
{
log_info ("%s", VERSION_TAG);
return 0;
}
if (user_options->usage == true)
{
usage_big_print (PROGNAME);
return 0;
}
/**
* session
*/
@ -266,20 +280,6 @@ int main (int argc, char **argv)
if (rc_user_options_sanity == -1) return -1;
if (user_options->version)
{
log_info ("%s", VERSION_TAG);
return 0;
}
if (user_options->usage)
{
usage_big_print (PROGNAME);
return 0;
}
/**
* Inform user things getting started,
* - this is giving us a visual header before preparations start, so we do not need to clear them afterwards