Fix option-compatibility code.
authorAdam Sampson <ats@offog.org>
Sat, 11 Oct 2003 17:09:21 +0000 (17:09 +0000)
committerAdam Sampson <ats@offog.org>
Sat, 11 Oct 2003 17:09:21 +0000 (17:09 +0000)
NEWS
rawdoglib/rawdog.py

diff --git a/NEWS b/NEWS
index b4ecfb4f79faf62e062507da6b924e847498ce78..1e7e1a2ec6b78517c92c3666af9d4556d72d37c1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,9 +1,6 @@
 - rawdog 1.4
 
-Remove the broken option-compatibility code; the old syntax now isn't
-supported. This means changing "rawdog update write" to "rawdog
---update --write" when you invoke rawdog, if you're still using the old
-syntax.
+Fix option-compatibility code (reported by BAM).
 
 Add HTTP basic authentication support (which means modifying feedparser
 again).
index 31bc2a47493fd577eb950cf7d70888a5c39b6cc9..dfa03498f835866f9cee1846e407f3c09b27404d 100644 (file)
@@ -569,6 +569,13 @@ def main(argv):
                elif o in ("-d", "--dir"):
                        statedir = a
 
+       # Support old option syntax.
+       for action in args:
+               if action in ("list", "update", "write"):
+                       optlist.append(("--" + action, None))
+               else:
+                       optlist.append(("--update-feed", action))
+
        try:
                os.chdir(statedir)
        except OSError: