]> projects.mako.cc - mw/commitdiff
Make 'mw help' work properly
authorIan Weller <ian@ianweller.org>
Mon, 8 Mar 2010 05:24:12 +0000 (23:24 -0600)
committerIan Weller <ian@ianweller.org>
Mon, 8 Mar 2010 05:24:12 +0000 (23:24 -0600)
src/mw/cli.py

index 50327cd6883e414c03cae0ca3f5c301336582ada..ef33d7357b41a267edb7237f28038a892fc0932a 100644 (file)
@@ -60,7 +60,7 @@ class CLI(object):
         if len(sys.argv) > 1:
             if sys.argv[1] in self.all_commands:
                 the_command = sys.argv[1] # SWEET ACTION
-            elif sys.argv[1] in ['--help', '-h']:
+            elif sys.argv[1] in ['--help', '-h', 'help']:
                 self.usage()
             else:
                 print '%s: invalid subcommand: %s' % (self.me, sys.argv[1])

Benjamin Mako Hill || Want to submit a patch?