MCPcopy Create free account
hub / github.com/mkdocstrings/griffe / help

Function help

scripts/make.py:84–107  ·  view source on GitHub ↗

Print this help. Add task name to print help. ```bash make help [TASK] ``` When the Python dependencies are not installed, this command just print the available commands. When the Python dependencies are installed, [duty](https://github.com/pawamoy/duty) is available

(*args: str)

Source from the content-addressed store, hash-verified

82# -----------------------------------------------------------------------------
83@_command("help")
84def help(*args: str) -> None:
85 """Print this help. Add task name to print help.
86
87 ```bash
88 make help [TASK]
89 ```
90
91 When the Python dependencies are not installed,
92 this command just print the available commands.
93 When the Python dependencies are installed,
94 [duty](https://github.com/pawamoy/duty) is available
95 so the command can also print the available tasks.
96
97 If you add a task name after the command, it will print help for this specific task.
98 """
99 if len(args) > 1:
100 _run("default", "duty", "--help", args[1])
101 else:
102 print("Available commands", flush=True)
103 for cmd in _commands:
104 print(f" {cmd.__cmdname__:21} {cmd.__doc__.splitlines()[0]}", flush=True)
105 if Path(".venv").exists():
106 print("\nAvailable tasks", flush=True)
107 run("duty", "--list")
108
109
110@_command("setup")

Callers 1

mainFunction · 0.85

Calls 2

_runFunction · 0.85
runFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…