From e451ea4d698450813bd11fed6b501b839cd477a6 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 2 May 2016 19:17:24 -0700 Subject: [PATCH] Reformat runworker a bit --- channels/management/commands/runworker.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/channels/management/commands/runworker.py b/channels/management/commands/runworker.py index 7f812e5..ec2b68a 100644 --- a/channels/management/commands/runworker.py +++ b/channels/management/commands/runworker.py @@ -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