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