def extras(help, version, options, doc):
    if help and any((o.name in ('-h', '--help')) and o.value for o in options):
        usage(doc.strip("\n"))
        sys.exit(1)
    if version and any(o.name == '--version' and o.value for o in options):
        print(version)
        sys.exit()
Overwritten method from docopt
dataset/ETHPy150Open SUSE/azurectl/azurectl/azurectl.py/extras