https://sphinx-argparse.readthedocs.io/ and keep it up to date with a github action to re-build the docs every commit