Cli Parser

Auto-generated documentation for mypy_boto3_builder.cli_parser module.

CLI parser.

get_absolute_path

[find in source code]

def get_absolute_path(path: str) -> Path:

Get absolute path from a string.

Arguments

  • path - String containing path.

Returns

Absolute path.

get_service_name

[find in source code]

def get_service_name(name: str) -> ServiceName:

Convert boto3 service name to ServiceName.

Arguments

  • name - Service name.

Raises

  • argparse.ArgumentTypeError - If service not found.

See also

parse_args

[find in source code]

def parse_args(args: Sequence[str]) -> argparse.Namespace:

Main CLI parser for builder.

Returns

Argument parser.