1 from typing import Any, Iterable, Tuple
3 from click.core import Context
5 def _unpack_args(args: Iterable[str], nargs_spec: Iterable[int]) -> tuple[Tuple[Tuple[str, ...] | None, ...], list[str]]: ...
6 def split_opt(opt: str) -> tuple[str, str]: ...
7 def normalize_opt(opt: str, ctx: Context) -> str: ...
8 def split_arg_string(string: str) -> list[str]: ...
17 _short_opts: list[str]
23 action: str | None = ...,
25 const: Any | None = ...,
26 obj: Any | None = ...,
29 def takes_value(self) -> bool: ...
30 def process(self, value: Any, state: ParsingState) -> None: ...
36 def __init__(self, dest: str, nargs: int = ..., obj: Any | None = ...) -> None: ...
37 def process(self, value: Any, state: ParsingState) -> None: ...
44 def __init__(self, rargs: list[str]) -> None: ...
48 allow_interspersed_args: bool
49 ignore_unknown_options: bool
50 _short_opt: dict[str, Option]
51 _long_opt: dict[str, Option]
52 _opt_prefixes: set[str]
54 def __init__(self, ctx: Context | None = ...) -> None: ...
59 action: str | None = ...,
61 const: Any | None = ...,
62 obj: Any | None = ...,
64 def add_argument(self, dest: str, nargs: int = ..., obj: Any | None = ...) -> None: ...
65 def parse_args(self, args: list[str]) -> tuple[dict[str, Any], list[str], list[Any]]: ...