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