- make the default image type PNG, to match mkhowto

- add a command-line option to control the image type
This commit is contained in:
Fred Drake 2004-11-05 04:05:06 +00:00
parent 2cf5e1920b
commit 5c0ebdcb64

View file

@ -20,7 +20,9 @@ class Options:
# content components
"address=", "iconserver=", "favicon=",
"title=", "uplink=", "uptitle="]
"title=", "uplink=", "uptitle=",
"image-type=",
]
outputfile = "-"
columns = 1
@ -51,7 +53,7 @@ def __init__(self):
self.args = []
self.variables = {"address": "",
"iconserver": "icons",
"imgtype": "gif",
"imgtype": "png",
"title": "Global Module Index",
}
@ -93,6 +95,8 @@ def parse(self, args):
self.variables["iconserver"] = val.strip() or "."
elif opt == "--favicon":
self.favicon = val.strip()
elif opt == "--image-type":
self.variables["imgtype"] = val.strip()
else:
self.handle_option(opt, val)
if self.uplink and self.uptitle: