Is a token just a single flag prefix character.
(token: str, parser: Cmd2ArgumentParser)
| 65 | |
| 66 | |
| 67 | def _single_prefix_char(token: str, parser: Cmd2ArgumentParser) -> bool: |
| 68 | """Is a token just a single flag prefix character.""" |
| 69 | return len(token) == 1 and token[0] in parser.prefix_chars |
| 70 | |
| 71 | |
| 72 | def _looks_like_flag(token: str, parser: Cmd2ArgumentParser) -> bool: |
no outgoing calls
searching dependent graphs…