def METHOD_NAME():
    """get the command-line arguments, handle syntax errors"""
    import argparse
    doc = __doc__.strip().splitlines()[0]
    parser = argparse.ArgumentParser(prog=sys.argv[0], description=doc)
    parser.add_argument(
        "defs_dir", action="store", help="NeXus definitions root directory"
    )
    return parser.parse_args()