Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
sys.excepthook = excepthook
parser = argparse.ArgumentParser(prog="submit50")
parser.add_argument("--logout", action=LogoutAction)
parser.add_argument("-v", "--verbose",
action="store_true",
help=_("show commands being executed"))
parser.add_argument("-V", "--version", action="version", version=f"%(prog)s {__version__}")
parser.add_argument("slug", help=_(
"prescribed identifier of work to submit"))
args = parser.parse_args()
excepthook.verbose = args.verbose
if args.verbose:
logging.basicConfig(level=os.environ.get("SUBMIT50_LOGLEVEL", "INFO"))
# Disable progress bar so it doesn't interfere with log
lib50.ProgressBar.DISABLED = True
check_announcements()