3 from wizard import deploy, command
6 options, show = parse_args(argv, baton)
7 for e in deploy.parse_install_lines(show, options, True):
8 if not isinstance(e, deploy.Error):
9 if isinstance(e, Exception):
13 if isinstance(e, deploy.NoSuchApplication):
14 print "Application %s does not exist, at %s" % (e.app, e.location)
15 elif isinstance(e, deploy.DeploymentParseError):
16 print "Parse error for line '%s', at %s" % (e.value, e.location)
22 def parse_args(argv, baton):
23 usage = """usage: %prog errors [ARGS]
25 Lists all errors that occurred while parsing the versions
27 parser = command.WizardOptionParser(usage)
28 baton.push(parser, "versions_path")
29 options, args = parser.parse_all(argv)
31 parser.error("too many arguments")