# Check if defined "--auth-cred" and/or '--auth-type'. if (menu.options.auth_type and not menu.options.auth_cred) or ( menu.options.auth_cred and not menu.options.auth_type): err_msg = "You must specify both '--auth-cred' and '--auth-type' options." print(settings.print_critical_msg(err_msg)) raise SystemExit() if menu.options.requestfile and menu.options.url: err_msg = "The '-r' option is incompatible with option '-u' ('--url')." print(settings.print_critical_msg(err_msg)) raise SystemExit() # Check if defined "--purge" option. if menu.options.purge: purge.purge() if not any((menu.options.url, menu.options.logfile, menu.options.bulkfile, \ menu.options.requestfile, menu.options.sitemap_url, menu.options.wizard)): raise SystemExit() # Check the user-defined OS. if menu.options.os: checks.user_defined_os() # Check if defined "--check-tor" option. if menu.options.tor_check and not menu.options.tor: err_msg = "The '--check-tor' swich requires usage of switch '--tor'." print(settings.print_critical_msg(err_msg)) raise SystemExit() # Check if defined "--mobile" option.
raise SystemExit() if menu.options.ignore_session and menu.options.flush_session: err_msg = "The '--ignore-session' parameter is unlikely to work combined with the '--flush-session' parameter." print settings.print_critical_msg(err_msg) raise SystemExit() # Check if defined "--auth-cred" and/or '--auth-type'. if (menu.options.auth_type and not menu.options.auth_cred) or (menu.options.auth_cred and not menu.options.auth_type): err_msg = "You must specify both '--auth-cred' and '--auth-type' parameters." print settings.print_critical_msg(err_msg) raise SystemExit() # Check if defined "--purge" option. if menu.options.purge: purge.purge() if not any((menu.options.url, menu.options.logfile, menu.options.bulkfile, \ menu.options.requestfile, menu.options.sitemap_url, menu.options.wizard)): raise SystemExit() # Check the user-defined OS. if menu.options.os: checks.user_defined_os() # Check if defined "--check-tor" option. if menu.options.tor_check and not menu.options.tor: err_msg = "The '--check-tor' swich requires usage of switch '--tor'." print settings.print_critical_msg(err_msg) raise SystemExit() # Check if defined "--mobile" option.