1 from wizard import deploy, command
4 options, args = parse_args(argv, baton)
6 deployment = deploy.ProductionCopy(dir)
7 print deployment.dsn.database
9 def parse_args(argv, baton):
10 usage = """usage: %prog database DIR
12 Prints the name of the database an application is using.
13 Maybe in the future this will print more information."""
14 parser = command.WizardOptionParser(usage)
15 options, args = parser.parse_all(argv)
17 parser.error("too many arguments")
19 parser.error("must specify directory")