Python's argparse module allows explicit the specification of a version. Unfortunately, it doesn't seem to respect newlines in the output:
import argparse
parser = argparse.ArgumentParser(description="test")
parser.add_argument("--version", "-v", action="version", version="some\ntext")
parser.parse_args()
python3 a.py -v
some text
Any hints on how to work around this?