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