Browse files

updating the -h options

  • Loading branch information...
1 parent 643770d commit 48f576c61696dabc7b54b51b793aae777db2ded6 @zachseifts committed Nov 21, 2012
Showing with 19 additions and 2 deletions.
  1. +19 −2 bin/wid
View
21 bin/wid
@@ -1,8 +1,9 @@
#!/usr/bin/env python
-from argparse import ArgumentParser
+from argparse import ArgumentParser, RawDescriptionHelpFormatter
from getpass import getuser
from os import path
+from textwrap import dedent
from whatidid import commands
@@ -54,7 +55,23 @@ class Main(object):
if __name__ == '__main__':
- parser = ArgumentParser(description=u'Keeping track of what you did this week')
+ description = dedent('''\
+ A minimalist command line app for life logging.
+
+ Commands:
+
+ updates
+
+ wid update\t\tAdd an update to your updates. -m is required, -t is optional
+ wid update-show\tLists all of your current updates.
+
+ todos
+
+ wid todo\t\tAdd an todo to your todos. -m is required, -t is optional.
+ wid todo-show\t\tLists all of your todos.
+
+ ''')
+ parser = ArgumentParser(formatter_class=RawDescriptionHelpFormatter, description=description)
parser.add_argument('command', metavar='COMMAND', type=str,
help=u'A command, ie: update, update-show, update-mail')
parser.add_argument('-m', '--message', type=str, metavar='"A message"', help=u'A message')

0 comments on commit 48f576c

Please sign in to comment.