瀏覽代碼

Fixed wrong arguments

Dmitry Malinovsky 11 年之前
父節點
當前提交
bc7eb64af2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/bin/worker.py

+ 1 - 1
celery/bin/worker.py

@@ -175,7 +175,7 @@ class worker(Command):
         # parse options before detaching so errors can be handled.
         options, args = self.prepare_args(
             *self.parse_options(prog_name, argv, command))
-        self.maybe_detach([command] + sys.argv[1:])
+        self.maybe_detach([command] + argv)
         return self(*args, **options)
 
     def maybe_detach(self, argv, dopts=['-D', '--detach']):