Actually move from optparse to argparse.
commit3c856468a9b03e20a89b894f7eabf3bce7fd440a
authorGünter Milde <milde@users.sf.net>
Tue, 28 Jun 2022 16:45:14 +0000 (28 18:45 +0200)
committerGünter Milde <milde@users.sf.net>
Wed, 29 Jun 2022 10:25:42 +0000 (29 12:25 +0200)
treed0745d0a48c0bd4db45394ad3bc314feb3c6422f
parent29f2ea371191d78bf4da7e1a9b52f8c4eb118f92
Actually move from optparse to argparse.

`argparse.Namespace()` expects keyword arguments.

`pylit.defaults` now needs to initialize all settings
(there is no longer an automatic fallback but we want to keep
using simple access like ``a = settings.infile``).
Adapt the ui tests.

Workarounds to keep INFILE and OUTFILE defaults from `pylit.defaults`
if there are no positional arguments in the cmdline.
pylit.py
test/pylit_ui_test.py