INNER CODE UNIT · Python

parse_args

uber/NullAway · scripts/nullaway-suppression-remover/src/suppression_remover/cli.py:41

def parse_args(input_args=None):
    parser = argparse.ArgumentParser(
        description="Remove unnecessary @SuppressWarnings annotations for a checker.",
        formatter_class=argparse.RawDescriptionHelpFormatter,
        epilog=(
            "Examples:\n"
            "  # Gradle project, targeting the 'caffeine' submodule\n"
            "  suppression-remover caffeine NullAway --alt-suppression NullAway.Init\n"
            "\n"
            "  # Explicit module path and project root\n"
            "  suppression-remover ./submodule NullAway --project-root /path/to/repo\n"
            "\n"
            "  # Custom build command\n"
            '  suppression-remover . MyChecker --build-cmd "./gradlew build --continue"'
        ),
    )
    parser.add_argument(
        "module",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…