MCPcopy
hub / github.com/pallets/click / _start_of_option

Function _start_of_option

src/click/shell_completion.py:566–572  ·  view source on GitHub ↗

Check if the value looks like the start of an option.

(ctx: Context, value: str)

Source from the content-addressed store, hash-verified

564
565
566def _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
575def _is_incomplete_option(ctx: Context, args: list[str], param: Parameter) -> bool:

Callers 2

_is_incomplete_optionFunction · 0.85
_resolve_incompleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected