Fix stupid error causing permanent exception
authorFrederic Massart <fred@moodle.com>
Wed, 12 Jun 2013 03:01:26 +0000 (11:01 +0800)
committerFrederic Massart <fred@moodle.com>
Wed, 12 Jun 2013 03:01:26 +0000 (11:01 +0800)
lib/commands/run.py

index f4474f7..13b1114 100644 (file)
@@ -89,7 +89,8 @@ class RunCommand(Command):
             return
 
         # Trigger error when script is missing
-        self.argumentError('missing script name')
+        if not args.script:
+            self.argumentError('missing script name')
 
         # Resolving instances
         names = args.names