mirror of
https://github.com/django/daphne.git
synced 2025-04-21 01:02:06 +03:00
Reformat runworker a bit
This commit is contained in:
parent
a9187b99fe
commit
e451ea4d69
|
@ -13,12 +13,18 @@ class Command(BaseCommand):
|
|||
|
||||
def add_arguments(self, parser):
|
||||
super(Command, self).add_arguments(parser)
|
||||
parser.add_argument('--layer', action='store', dest='layer', default=DEFAULT_CHANNEL_LAYER,
|
||||
help='Channel layer alias to use, if not the default.')
|
||||
parser.add_argument('--only-channels', action='append', dest='only_channels',
|
||||
help='Limits this worker to only listening on the provided channels (supports globbing).')
|
||||
parser.add_argument('--exclude-channels', action='append', dest='exclude_channels',
|
||||
help='Prevents this worker from listening on the provided channels (supports globbing).')
|
||||
parser.add_argument(
|
||||
'--layer', action='store', dest='layer', default=DEFAULT_CHANNEL_LAYER,
|
||||
help='Channel layer alias to use, if not the default.',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--only-channels', action='append', dest='only_channels',
|
||||
help='Limits this worker to only listening on the provided channels (supports globbing).',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--exclude-channels', action='append', dest='exclude_channels',
|
||||
help='Prevents this worker from listening on the provided channels (supports globbing).',
|
||||
)
|
||||
|
||||
def handle(self, *args, **options):
|
||||
# Get the backend to use
|
||||
|
|
Loading…
Reference in New Issue
Block a user