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

Method print_help

invoke/program.py:676–686  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

674 print("{} {}".format(self.name, self.version or "unknown"))
675
676 def print_help(self) -> None:
677 usage_suffix = "task1 [--task1-opts] ... taskN [--taskN-opts]"
678 if self.namespace is not None:
679 usage_suffix = "<subcommand> [--subcommand-opts] ..."
680 print("Usage: {} [--core-opts] {}".format(self.binary, usage_suffix))
681 print("")
682 print("Core options:")
683 print("")
684 self.print_columns(self.initial_context.help_tuples())
685 if self.namespace is not None:
686 self.list_tasks()
687
688 def parse_core_args(self) -> None:
689 """

Callers 3

parse_collectionMethod · 0.95
parse_cleanupMethod · 0.95
no_tasks_givenMethod · 0.95

Calls 3

print_columnsMethod · 0.95
list_tasksMethod · 0.95
help_tuplesMethod · 0.80

Tested by

no test coverage detected