diff --git a/src/hashcat.c b/src/hashcat.c index 780c39c7d..4e47600da 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -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