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

Method optional_values_use_brackets

tests/parser_context.py:218–220  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

216 assert m == myarg
217
218 def optional_values_use_brackets(self):
219 result = self.tasked.help_for("--optval")
220 assert result == ("-p [STRING], --optval[=STRING]", "")
221
222 def underscored_args(self):
223 c = Context(args=(Argument("i_have_underscores", help="yup"),))

Callers

nothing calls this directly

Calls 1

help_forMethod · 0.80

Tested by

no test coverage detected