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

Method multiple_short_flags_adjacent

tests/cli.py:146–152  ·  view source on GitHub ↗

my-task -bv (and inverse)

(self)

Source from the content-addressed store, hash-verified

144 assert r[1].args.mystring.value == "bar"
145
146 def multiple_short_flags_adjacent(self):
147 "my-task -bv (and inverse)"
148 for args in ("-bv", "-vb"):
149 r = self._parse("my-task {}".format(args))
150 a = r[0].args
151 assert a.b.value
152 assert a.v.value
153
154 def list_type_flag_can_be_given_N_times_building_a_list(self):
155 "my-task --my-list foo --my-list bar"

Callers

nothing calls this directly

Calls 1

_parseMethod · 0.95

Tested by

no test coverage detected