Check if the value looks like the start of an option.
(ctx: Context, value: str)
| 564 | |
| 565 | |
| 566 | def _start_of_option(ctx: Context, value: str) -> bool: |
| 567 | """Check if the value looks like the start of an option.""" |
| 568 | if not value: |
| 569 | return False |
| 570 | |
| 571 | c = value[0] |
| 572 | return c in ctx._opt_prefixes |
| 573 | |
| 574 | |
| 575 | def _is_incomplete_option(ctx: Context, args: list[str], param: Parameter) -> bool: |
no outgoing calls
no test coverage detected