From: Adam Sampson Date: Sat, 11 Oct 2003 17:09:21 +0000 (+0000) Subject: Fix option-compatibility code. X-Git-Tag: v1.4~4 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=c87955dbaf4a47bb3293b5cb9bc2fa0843e99255;p=rawdog%2F.git Fix option-compatibility code. --- 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: