INNER CODE UNIT · Python

parser

hartwork/git-delete-merged-branches · git_delete_merged_branches/_cli.py:57

    parser = argparse.ArgumentParser(**parser_kwargs)

    modes = parser.add_argument_group("modes").add_mutually_exclusive_group()
    modes.add_argument(
        "--configure",
        dest="force_reconfiguration",
        action="store_true",
        help=f"configure {APP} and exit (without processing any branches)",
    )
    modes.add_argument("--help", "-h", action="help", help="show this help message and exit")
    modes.add_argument("--version", action="version", version="%(prog)s " + VERSION)

    rules = parser.add_argument_group("rules")
    rules.add_argument(
        "--branch",
        "-b",
        metavar="BRANCH",
        dest="required_target_branches",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…