Permalink
Browse files

#8 bugfix

  • Loading branch information...
1 parent c3c4995 commit 9edba18abf541b7da8250400a8766ade942ec824 @jsk jsk committed Jan 6, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 django_gearman_commands/management/commands/gearman_server_info.py
@@ -14,14 +14,15 @@
class Command(BaseCommand):
"""Pprint overview of Gearman server status and workers."""
+ args = '[task_filter]'
help = 'Print overview of Gearman server status and workers.'
def handle(self, *args, **options):
result = ''
task_filter = ''
- if len(args) > 1:
- task_filter = args[1]
+ if len(args) > 0:
+ task_filter = args[0]
for server in django_gearman_commands.settings.GEARMAN_SERVERS:
server_info = GearmanServerInfo(server)

0 comments on commit 9edba18

Please sign in to comment.