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

Method underscores_become_dashes

tests/task.py:371–379  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

369 assert len(mytask.get_arguments()) == 0
370
371 def underscores_become_dashes(self):
372 @task
373 def mytask(c, longer_arg):
374 pass
375
376 arg = mytask.get_arguments()[0]
377 assert arg.names == ("longer-arg", "l")
378 assert arg.attr_name == "longer_arg"
379 assert arg.name == "longer_arg"
380
381 class help:
382 def setup_method(self):

Callers

nothing calls this directly

Calls 1

get_argumentsMethod · 0.80

Tested by

no test coverage detected