Index: svn2rss.py
===================================================================
--- svn2rss.py	(revision 19983)
+++ svn2rss.py	(working copy)
@@ -20,13 +20,15 @@
     sys.stderr.write("http://www.dalkescientific.com/Python/PyRSS2Gen.html\n")
 
 def usage():
-    print "Usage: svn2rss.py [-h|--help] [--svn-path] --revision <rev> "
-    print "                  --repos-path <path> "
-    print "                  --url <url> --rss-file <file>"
-    print "       svn-path : path where svn binaries are installed"
-    print "       url      : link in the rss item that points to the"
-    print "                  viewcvs page for the revision"
+    print "Usage: svn2rss.py { options }"
     print ""
+    print " -h | --help         Show this help message"
+    print " -P | --svn-path=    path where svn binaries are installed"
+    print " -r | --revision=    svn revision"
+    print " -p | --repos-path=  svn repository to generate RSS 2.0 feed"
+    print " -u | --url=         link to appear in the rss item"
+    print " -f | --rss-file=    filename to store the rss feed"
+    print ""
     print "Generates a RSS 2.0 file containing commit information."
     print "Once the maximum number of items is reached, the oldest element"
     print "is removed.  The item title is the Revision number and the item"
@@ -39,29 +41,33 @@
     sys.exit(2)
    
 try:
-    opts, args = getopt.gnu_getopt(sys.argv[1:],"h", ["help", "svn-path=",
+    opts, args = getopt.gnu_getopt(sys.argv[1:],"hP:r:p:u:f:", [
+                                                      "help", "svn-path=",
                                                       "revision=",
                                                       "repos-path=", "url=",
                                                       "rss-file="])
 except getopt.GetoptError, msg:
     print msg
-    sys.stderr.write(usage())
+    usage()
     sys.exit(2)
 
 for opt, arg in opts:
     if opt in ("-h", "--help"):
         usage()
         sys.exit(0)
-    elif opt == "--svn-path":
+    elif opt in ("-P", "--svn-path"):
         svn_path = arg
-    elif opt == "--revision":
+    elif opt in ("-r", "--revision"):
         commit_rev = arg
-    elif opt == "--repos-path":
+    elif opt in ("-p", "--repos-path"):
         repos_path = arg
-    elif opt == "--url":
+    elif opt in ("-u", "--url"):
         url = arg
-    elif opt == "--rss-file":
+    elif opt in ("-f", "--rss-file"):
         rss_file = arg
+    else:
+        usage()
+        sys.exit(0)
 
 class SVN2RSS:
     def __init__(self, svn_path, revision, repos_path, url, rss_file):
