The parser module uses the optparse Python module, which is deprecated and should be replaced by argparse.
See issue #16 for a code sample you could start with.