Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed task-doc-check task for aaargh usage.

  • Loading branch information...
commit bee5e659b0f5f6a9c0c395d0b2b7d57aa01908bd 1 parent e94fa64
James Rowe authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 tasks/maintenance.py
8 tasks/maintenance.py
View
@@ -1,7 +1,6 @@
import datetime
from glob import glob
-from operator import attrgetter
from re import match
from subprocess import (Popen, PIPE)
@@ -51,12 +50,7 @@ def task_doc_check():
if match("^'+\n$", line):
commands.append(lines[n - 1][2:-3])
- for command in sorted(commands, key=attrgetter('__name__')):
- if hasattr(command, 'argh_alias'):
- name = command.argh_alias
- else:
- name = command.__name__
- name = name.replace('_', '-')
+ for name in sorted(APP._subparsers.choices):
if not name in commands:
print(warn('%s task undocumented' % name))
Please sign in to comment.
Something went wrong with that request. Please try again.