Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _get_default_metavar_for_optional
Method
_get_default_metavar_for_optional
Lib/argparse.py:701–702 ·
view source on GitHub ↗
(self, action)
Source
from the content-addressed store, hash-verified
699
return
action.help
700
701
def
_get_default_metavar_for_optional(self, action):
702
return
action.dest.upper()
703
704
def
_get_default_metavar_for_positional(self, action):
705
return
action.dest
Callers
2
_get_actions_usage_parts
Method · 0.95
_format_action_invocation
Method · 0.95
Calls
1
upper
Method · 0.45
Tested by
no test coverage detected