def parse_args():
    global args
    parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
    parser.add_argument('-k', '--kernel', required=False, help='Input zephyr ELF binary')
    parser.add_argument('-g', '--gperf-output', required=False, help='Output list of kernel object addresses for gperf use')
    parser.add_argument('-V', '--validation-output', required=False, help='Output driver validation macros')
    parser.add_argument('-K', '--kobj-types-output', required=False, help='Output k_object enum constants')
    parser.add_argument('-S', '--kobj-otype-output', required=False, help='Output case statements for otype_to_str()')
    parser.add_argument('-Z', '--kobj-size-output', required=False, help='Output case statements for obj_size_get()')
    parser.add_argument('-i', '--include-subsystem-list', required=False, action='append', help='Specifies a file with a JSON encoded list of subsystem names to append to\n        the driver subsystems list. Can be specified multiple times:\n        -i file1 -i file2 ...')
    parser.add_argument('-v', '--verbose', action='store_true', help='Print extra debugging information')
    args = parser.parse_args()
    if ('VERBOSE' in os.environ):
        args.verbose = 1
def parse_args():
    global args
    parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
    parser.add_argument('-k', '--kernel', required=False, help='Input zephyr ELF binary')
    parser.add_argument('-g', '--gperf-output', required=False, help='Output list of kernel object addresses for gperf use')
    parser.add_argument('-V', '--validation-output', required=False, help='Output driver validation macros')
    parser.add_argument('-K', '--kobj-types-output', required=False, help='Output k_object enum constants')
    parser.add_argument('-S', '--kobj-otype-output', required=False, help='Output case statements for otype_to_str()')
    parser.add_argument('-Z', '--kobj-size-output', required=False, help='Output case statements for obj_size_get()')
    parser.add_argument('-i', '--include-subsystem-list', required=False, action='append', help='Specifies a file with a JSON encoded list of subsystem names to append to\n        the driver subsystems list. Can be specified multiple times:\n        -i file1 -i file2 ...')
    parser.add_argument('-v', '--verbose', action='store_true', help='Print extra debugging information')
    args = parser.parse_args()
    if ('VERBOSE' in os.environ):
        args.verbose = 1