소스 검색

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

Ask Solem 15 년 전
부모
커밋
f4c8ead3ad
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 "