Prepare move from optparse to argparse.
commit29f2ea371191d78bf4da7e1a9b52f8c4eb118f92
authorGünter Milde <milde@users.sf.net>
Mon, 27 Jun 2022 14:33:00 +0000 (27 16:33 +0200)
committerGünter Milde <milde@users.sf.net>
Mon, 27 Jun 2022 18:33:23 +0000 (27 20:33 +0200)
tree531eecb66476ff85c9eeb3668bf5a4ecfa7d9b17
parent8595c8b81cb67a569eb6aeaddba2aa1b497a6497
Prepare move from optparse to argparse.

Use custom `DefaultDict`, as `collections.defaultdict` adds
key/value pairs for missing keys.

Remove `OptionValues.as_dict()`. Use ``vars(<instance>).copy()``.

PylitOptions.parse_args() now expects the same arguments as
`optparse.OptionParser.parse_options()`.
pylit.py
test/pylit_ui_test.py