mirror of
https://github.com/django/daphne.git
synced 2025-07-14 09:52:17 +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):
|
def add_arguments(self, parser):
|
||||||
super(Command, self).add_arguments(parser)
|
super(Command, self).add_arguments(parser)
|
||||||
parser.add_argument('--layer', action='store', dest='layer', default=DEFAULT_CHANNEL_LAYER,
|
parser.add_argument(
|
||||||
help='Channel layer alias to use, if not the default.')
|
'--layer', action='store', dest='layer', default=DEFAULT_CHANNEL_LAYER,
|
||||||
parser.add_argument('--only-channels', action='append', dest='only_channels',
|
help='Channel layer alias to use, if not the default.',
|
||||||
help='Limits this worker to only listening on the provided channels (supports globbing).')
|
)
|
||||||
parser.add_argument('--exclude-channels', action='append', dest='exclude_channels',
|
parser.add_argument(
|
||||||
help='Prevents this worker from listening on the provided channels (supports globbing).')
|
'--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):
|
def handle(self, *args, **options):
|
||||||
# Get the backend to use
|
# Get the backend to use
|
||||||
|
|
Loading…
Reference in New Issue
Block a user