Skip to content

new_feature.cli_parser

new_feature.cli_parser

Define the command-line argument parser for every lifecycle command.

build_parser() -> argparse.ArgumentParser

Build the command-line parser for every supported lifecycle command.

command_names(*, feature_names: bool = False, json_output: bool = False) -> tuple[str, ...]

Derive command capabilities from the actual argument definitions.

parse_args(argv: list[str]) -> argparse.Namespace

Parse a command-line argument list into a lifecycle command request.

wants_json(argv: list[str]) -> bool

Recognize JSON intent for supported commands, including shorthand creation.