mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-30 17:41:00 +00:00
Fix --help and --version
This commit is contained in:
parent
65b5918037
commit
6238aa884b
@ -205,6 +205,20 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
if (rc_user_options_parse1 == -1) return -1;
|
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
|
* session
|
||||||
*/
|
*/
|
||||||
@ -266,20 +280,6 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
if (rc_user_options_sanity == -1) return -1;
|
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,
|
* Inform user things getting started,
|
||||||
* - this is giving us a visual header before preparations start, so we do not need to clear them afterwards
|
* - this is giving us a visual header before preparations start, so we do not need to clear them afterwards
|
||||||
|
Loading…
Reference in New Issue
Block a user