From c87955dbaf4a47bb3293b5cb9bc2fa0843e99255 Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Sat, 11 Oct 2003 17:09:21 +0000 Subject: [PATCH] Fix option-compatibility code. --- NEWS | 5 +---- rawdoglib/rawdog.py | 7 +++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index b4ecfb4..1e7e1a2 100644 --- 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). diff --git a/rawdoglib/rawdog.py b/rawdoglib/rawdog.py index 31bc2a4..dfa0349 100644 --- a/rawdoglib/rawdog.py +++ b/rawdoglib/rawdog.py @@ -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: -- 2.35.1