Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ expand_prog_name
Method
expand_prog_name
Lib/optparse.py:1540–1541 ·
view source on GitHub ↗
(self, s)
Source
from the content-addressed store, hash-verified
1538
return
self.prog
1539
1540
def
expand_prog_name(self, s):
1541
return
s.replace(
"%prog"
, self.get_prog_name())
1542
1543
def
get_description(self):
1544
return
self.expand_prog_name(self.description)
Callers
3
get_description
Method · 0.95
get_usage
Method · 0.95
get_version
Method · 0.95
Calls
2
get_prog_name
Method · 0.95
replace
Method · 0.45
Tested by
no test coverage detected