5 import distutils.version
7 from wizard import command, deploy, git, shell, util
10 options, args = parse_args(argv, baton)
16 if os.path.exists(".git/WIZARD_REPO"):
17 util.chdir(sh.eval('git', 'config', 'remote.origin.url'))
18 open('.scripts/blacklisted', 'w').write(reason + "\n")
20 def parse_args(argv, baton):
21 usage = """usage: %prog blacklist [ARGS] [REASON]
23 Touches .scripts/blacklisted so that we don't attempt
24 to upgrade the script in the future."""
25 parser = command.WizardOptionParser(usage)
26 options, args = parser.parse_all(argv)
28 parser.error("too many arguments")