changeset 68:3550159184cf

again, not sure why i have to commit after merging
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 28 Jun 2010 08:07:09 -0700
parents 894a2e76bd40 (diff) 0f25fe665367 (current diff)
children bcc3a59713c3 3da163e44b8a
files
diffstat 1 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyblog/blogme.py	Sat Jun 12 09:46:36 2010 -0700
+++ b/bitsyblog/blogme.py	Mon Jun 28 08:07:09 2010 -0700
@@ -1,5 +1,4 @@
 #!/usr/bin/env python
-
 """
 command line blogger
 """
@@ -32,14 +31,19 @@
 def main(args=sys.argv[1:]):
 
     # parse command line options
-    parser = optparse.OptionParser()
-    parser.add_option('-c', '--config')
-    parser.add_option('-f', '--file')
-    parser.add_option('-H', '--host')
+    parser = optparse.OptionParser(description=__doc__)
+    parser.add_option('-c', '--config',
+                      help='configuration file to use [Default: ~/.blogme]')
+    parser.add_option('-f', '--file',
+                      help='path to blog entries for the user; does not touch net')
+    parser.add_option('-H', '--host',
+                      help='URL of bitsyblog instance')
     parser.add_option('-u', '--user')
     parser.add_option('-p', '--password')
-    parser.add_option('--private', action='store_true', default=False)
-    parser.add_option('--secret', action='store_true', default=False)
+    parser.add_option('--private', action='store_true', default=False,
+                      help='denote this blog entry as private')
+    parser.add_option('--secret', action='store_true', default=False,
+                      help='denote this blog entry as secret')
     options, args = parser.parse_args()
     
     # sanity check