# HG changeset patch # User Jeff Hammel # Date 1277737629 25200 # Node ID 3550159184cfc957b6a7f72ce9a37a8c55c5c265 # Parent 894a2e76bd40da69efb819b072ba73409a4e7024# Parent 0f25fe665367cc0ae8657540051dbee8fc587b6d again, not sure why i have to commit after merging diff -r 0f25fe665367 -r 3550159184cf bitsyblog/blogme.py --- 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