- 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
usage()
return 1
+ if len(args) != 0:
+ usage()
+ return 1
+
statedir = os.environ["HOME"] + "/.rawdog"
for o, a in optlist:
if o == "--help":
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:
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?