MCPcopy Index your code
hub / github.com/pyinvoke/invoke / see_value

Method see_value

invoke/parser/parser.py:439–446  ·  view source on GitHub ↗
(self, value: Any)

Source from the content-addressed store, hash-verified

437 self.flag.value = val
438
439 def see_value(self, value: Any) -> None:
440 self.check_ambiguity(value)
441 if self.flag and self.flag.takes_value:
442 debug("Setting flag {!r} to value {!r}".format(self.flag, value))
443 self.flag.value = value
444 self.flag_got_value = True
445 else:
446 self.error("Flag {!r} doesn't take any value!".format(self.flag))
447
448 def see_positional_arg(self, value: Any) -> None:
449 for arg in self.context.positional_args:

Callers 1

handleMethod · 0.95

Calls 2

check_ambiguityMethod · 0.95
errorMethod · 0.95

Tested by

no test coverage detected