Browse Source

__doc__ overriden by local means descriptions not added to celery worker --help

Ask Solem 12 years ago
parent
commit
5c60af9e64
1 changed files with 3 additions and 1 deletions
  1. 3 1
      celery/bin/worker.py

+ 3 - 1
celery/bin/worker.py

@@ -124,6 +124,8 @@ from celery.bin.celeryd_detach import detached_celeryd
 from celery.five import string_t
 from celery.utils.log import LOG_LEVELS, mlevel
 
+__MODULE_DOC__ = __doc__
+
 
 class worker(Command):
     """Start worker instance.
@@ -138,7 +140,7 @@ class worker(Command):
 
         celery worker --autoscale=10,0
     """
-    doc = __doc__  # parse help from this.
+    doc = __MODULE_DOC__  # parse help from this too
     namespace = 'celeryd'
     enable_config_from_cmdline = True
     supports_args = False