MCPcopy
hub / github.com/google/python-fire / _IsMultiCharFlag

Function _IsMultiCharFlag

fire/core.py:954–956  ·  view source on GitHub ↗

Determines if the argument is a multi char flag (e.g. '--alpha').

(argument)

Source from the content-addressed store, hash-verified

952
953
954def _IsMultiCharFlag(argument):
955 """Determines if the argument is a multi char flag (e.g. '--alpha')."""
956 return argument.startswith('--') or re.match('^-[a-zA-Z]', argument)
957
958
959def _ParseValue(value, index, arg, metadata):

Callers 1

_IsFlagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected