def run(): if not check_git(): print("Error! Git executable not found!") print("Please ensure you have git installed!") sys.exit(1) m = Manifest() if args.command in commands: commands[args.command]['method']() else: print("Valid command required!") parser.print_usage() sys.exit(1) m.save()