]> projects.mako.cc - mw/commitdiff
Add extra usage information to commit
authorIan Weller <ian@ianweller.org>
Mon, 15 Mar 2010 02:01:00 +0000 (21:01 -0500)
committerIan Weller <ian@ianweller.org>
Mon, 15 Mar 2010 02:01:00 +0000 (21:01 -0500)
src/mw/clicommands.py

index a0fb016fad1130816702d92794871725870a687e..9d8b2dc1e08bef229af2ddfb9a872fe6faff61ee 100644 (file)
@@ -174,7 +174,8 @@ class DiffCommand(CommandBase):
 class CommitCommand(CommandBase):
 
     def __init__(self):
-        CommandBase.__init__(self, 'commit', 'commit changes to wiki')
+        usage = '[FILES]'
+        CommandBase.__init__(self, 'commit', 'commit changes to wiki', usage)
         self.shortcuts.append('ci')
         self.parser.add_option('-m', '--message', dest='edit_summary',
                                help='don\'t prompt for edit summary and '

Benjamin Mako Hill || Want to submit a patch?