3 from wizard import command, deploy, shell
6 options, args = parse_args(argv, baton)
8 shell.drop_priviledges(dir, options.log_file)
9 deployment = deploy.ProductionCopy(dir)
11 deployment.remove(options)
14 def parse_args(argv, baton):
15 usage = """usage: %prog remove DIR
17 Removes an autoinstall directory, deleting any databases along
18 with it. Will refuse to remove a non-autoinstall directory. Be
19 careful: this will also destroy all backups!"""
20 parser = command.WizardOptionParser(usage)
21 options, args = parser.parse_all(argv)
23 parser.error("too many arguments")
25 parser.error("must specify directory")