From: Adam Sampson Date: Tue, 27 Jul 2004 15:29:46 +0000 (+0000) Subject: Remove the old option syntax compatibility code. X-Git-Tag: v2.0.pre1~11 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=dd16557bb534104cc7d55212cd76d3d64b4fc44f;p=rawdog%2F.git Remove the old option syntax compatibility code. --- diff --git a/NEWS b/NEWS index 5025355..8c0435e 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,11 @@ - rawdog 2.0 -Update to feedparser 3.3. FIXME detail what I've done to it +Update to feedparser 3.3. This meant reworking some of rawdog's +internals; state files from old versions will no longer work with rawdog +2.0 (and external programs that manipulate rawdog state files will also +be broken). + +The old option syntax ("rawdog update write") is no longer supported. - rawdog 1.13 diff --git a/rawdoglib/rawdog.py b/rawdoglib/rawdog.py index 45fc715..9971ba8 100644 --- a/rawdoglib/rawdog.py +++ b/rawdoglib/rawdog.py @@ -854,6 +854,10 @@ def main(argv): usage() return 1 + if len(args) != 0: + usage() + return 1 + statedir = os.environ["HOME"] + "/.rawdog" for o, a in optlist: if o == "--help": @@ -862,13 +866,6 @@ 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: diff --git a/todolist b/todolist index 8948278..87ab376 100644 --- a/todolist +++ b/todolist @@ -44,7 +44,6 @@ latest version. For next release: - generalise templating (so the show template option takes a name, etc.) -- remove old option parsing - require Python 2.3; kill 2.2 urllib2 workaround - use unicode.encode('ascii','xmlcharrefreplace') if possible?