]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/command/errors.py
Fix formatting bug.
[wizard.git] / wizard / command / errors.py
index 08fd76ee538678d3fb0e9c3192f7aa51a6170c33..6b46720c6594ae58d09ddff8be6ca332a53eea9a 100644 (file)
@@ -1,10 +1,8 @@
-import logging
-
 from wizard import app, deploy, command
 
 def main(argv, baton):
     options, show = parse_args(argv, baton)
-    for e in deploy.parse_install_lines(show, options.versions_path, True):
+    for e in deploy.parse_install_lines(show, options.versions_path, True, user=options.user):
         if not isinstance(e, deploy.Error) and not isinstance(e, app.Error):
             if isinstance(e, Exception):
                 raise e
@@ -12,7 +10,7 @@ def main(argv, baton):
         if options.verbose:
             if isinstance(e, app.NoSuchApplication):
                 print "Application %s does not exist, at %s" % (e.app, e.location)
-            elif isinstance(e, deploy.DeploymentParseError):
+            elif isinstance(e, app.DeploymentParseError):
                 print "Parse error for line '%s', at %s" % (e.value, e.location)
             else:
                 raise e
@@ -26,6 +24,7 @@ Lists all errors that occurred while parsing the versions
 directory."""
     parser = command.WizardOptionParser(usage)
     baton.push(parser, "versions_path")
+    baton.push(parser, "user")
     options, args = parser.parse_all(argv)
     if len(args) > 1:
         parser.error("too many arguments")