Sfoglia il codice sorgente

celeryd: Added --purge as an alias to --discard

Ask Solem 15 anni fa
parent
commit
f4c8ead3ad
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      celery/bin/celeryd.py

+ 2 - 2
celery/bin/celeryd.py

@@ -42,7 +42,7 @@
 
     Send events that can be captured by monitors like ``celerymon``.
 
-.. cmdoption:: --discard
+.. cmdoption:: --purge, --discard
 
     Discard all waiting tasks before the daemon is started.
     **WARNING**: This is unrecoverable, and the tasks will be
@@ -109,7 +109,7 @@ OPTION_LIST = (
     optparse.make_option('-V', '--version',
             action="callback", callback=dump_version,
             help="Show version information and exit."),
-    optparse.make_option('--discard', default=False,
+    optparse.make_option('--purge', '--discard', default=False,
             action="store_true", dest="discard",
             help="Discard all waiting tasks before the server is started. "
                  "WARNING: This is unrecoverable, and the tasks will be "