Commits

Anonymous committed 0c1d0f3

Since we lob off the first argument, min_args needs to be decremented before calling Command.run. Hacky.

Comments (0)

Files changed (1)

celerypylons/commands.py

         if len(args) < self.min_args:
             raise BadCommand(
                 self.min_args_error % {'min_args': self.min_args,
-                                       'actual_args': len(args)})            
+                                       'actual_args': len(args)})
+        # Decrement because we're going to lob off the first argument.
+        # @@ This is hacky
+        self.min_args -= 1
         self.bootstrap_config(args[0])
         self.update_parser()
         return super(CeleryCommand, self).run(args[1:])