def METHOD_NAME(sys_args: List[str]) -> Args:
    """Parse command line arguments"""
    parser = ArgumentParser(description=__doc__)
    parser.add_argument(
        "--examples-dir",
        default=EXAMPLES_ROOT,
        help=f"the directory in which to look for examples (default: {EXAMPLES_ROOT})",
    )
    parser.add_argument(
        "-e",
        "--exclude-pattern",
        action="append",
        default=EXCLUDE_PATTERNS,
        help=(
            "do not run example files that contain this regex pattern. "
            "This argument may be used more than once"
        ),
    )
    parser.add_argument(
        "--plotting-on",
        action="store_true",
        default=False,
        help="enable interactive plotting windows",
    )
    args = parser.METHOD_NAME(sys_args)
    return Args(**vars(args))