Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _get_default_metavar_for_optional
Method
_get_default_metavar_for_optional
Lib/argparse.py:758–759 ·
view source on GitHub ↗
(self, action)
Source
from the content-addressed store, hash-verified
756
return
action.help
757
758
def
_get_default_metavar_for_optional(self, action):
759
return
action.dest.upper()
760
761
def
_get_default_metavar_for_positional(self, action):
762
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