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

Method task_args

invoke/program.py:152–179  ·  view source on GitHub ↗

Return default task-related `.Argument` objects, as a list. These are only added to the core args in "task runner" mode (the default for ``invoke`` itself) - they are omitted when the constructor is given a non-empty ``namespace`` argument ("bundled namespace" mode)

(self)

Source from the content-addressed store, hash-verified

150 ]
151
152 def task_args(self) -> List["Argument"]:
153 """
154 Return default task-related `.Argument` objects, as a list.
155
156 These are only added to the core args in "task runner" mode (the
157 default for ``invoke`` itself) - they are omitted when the constructor
158 is given a non-empty ``namespace`` argument ("bundled namespace" mode).
159
160 .. versionadded:: 1.0
161 """
162 # Arguments pertaining specifically to invocation as 'invoke' itself
163 # (or as other arbitrary-task-executing programs, like 'fab')
164 return [
165 Argument(
166 names=("collection", "c"),
167 help="Specify collection name to load.",
168 ),
169 Argument(
170 names=("no-dedupe",),
171 kind=bool,
172 default=False,
173 help="Disable task deduplication.",
174 ),
175 Argument(
176 names=("search-root", "r"),
177 help="Change root directory used for finding task modules.",
178 ),
179 ]
180
181 argv: List[str]
182 # Other class-level global variables a subclass might override sometime

Calls 1

ArgumentClass · 0.85

Tested by

no test coverage detected