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

Method underscored_args

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

Source from the content-addressed store, hash-verified

220 assert result == ("-p [STRING], --optval[=STRING]", "")
221
222 def underscored_args(self):
223 c = Context(args=(Argument("i_have_underscores", help="yup"),))
224 result = c.help_for("--i-have-underscores")
225 assert result == ("--i-have-underscores=STRING", "yup")
226
227 def true_default_args(self):
228 c = Context(args=(Argument("truthy", kind=bool, default=True),))

Callers

nothing calls this directly

Calls 3

ArgumentClass · 0.90
ContextClass · 0.85
help_forMethod · 0.80

Tested by

no test coverage detected