MCPcopy Create free account
hub / github.com/pyinvoke/invoke / short_flag_with_adjacent_value

Method short_flag_with_adjacent_value

tests/cli.py:110–113  ·  view source on GitHub ↗

my-task -svalue

(self)

Source from the content-addressed store, hash-verified

108 self._compare("-s=value", "s", "value")
109
110 def short_flag_with_adjacent_value(self):
111 "my-task -svalue"
112 r = self._parse("my-task -svalue")
113 assert r[0].args.s.value == "value"
114
115 def _flag_value_task(self, value):
116 r = self._parse("my-task -s {} my-task2".format(value))

Callers

nothing calls this directly

Calls 1

_parseMethod · 0.95

Tested by

no test coverage detected