Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed task-doc-check task for aaargh usage.

  • Loading branch information...
commit bee5e659b0f5f6a9c0c395d0b2b7d57aa01908bd 1 parent e94fa64
James Rowe authored August 14, 2012

Showing 1 changed file with 1 addition and 7 deletions. Show diff stats Hide diff stats

  1. 8  tasks/maintenance.py
8  tasks/maintenance.py
... ...
@@ -1,7 +1,6 @@
1 1
 import datetime
2 2
 
3 3
 from glob import glob
4  
-from operator import attrgetter
5 4
 from re import match
6 5
 from subprocess import (Popen, PIPE)
7 6
 
@@ -51,12 +50,7 @@ def task_doc_check():
51 50
         if match("^'+\n$", line):
52 51
             commands.append(lines[n - 1][2:-3])
53 52
 
54  
-    for command in sorted(commands, key=attrgetter('__name__')):
55  
-        if hasattr(command, 'argh_alias'):
56  
-            name = command.argh_alias
57  
-        else:
58  
-            name = command.__name__
59  
-        name = name.replace('_', '-')
  53
+    for name in sorted(APP._subparsers.choices):
60 54
         if not name in commands:
61 55
             print(warn('%s task undocumented' % name))
62 56
 

0 notes on commit bee5e65

Please sign in to comment.
Something went wrong with that request. Please try again.