Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pyinvoke/invoke
/ can_declare_positional
Method
can_declare_positional
tests/parser_argument.py:27–28 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
25
assert
"b"
in Argument(
"b"
).names
26
27
def
can_declare_positional(self):
28
assert Argument(name=
"foo"
, positional=True).positional is True
29
30
def
positional_is_False_by_default(self):
31
assert Argument(name=
"foo"
).positional is False
Callers
nothing calls this directly
Calls
1
Argument
Class · 0.90
Tested by
no test coverage detected