shtab icon indicating copy to clipboard operation
shtab copied to clipboard

Handle argparse `%(default)s` placeholder (and others?)

Open jimporter opened this issue 4 years ago • 0 comments
trafficstars

argparse has a nice feature where you can specify %(default)s in the help string, and it will fill in the default value as specified by the default keyword arg. However, shtab doesn't seem to be aware of this, so it appears literally when shell-completing. It would be nice if shtab could interpolate this value when generating the shell-completion functions.

jimporter avatar Aug 23 '21 04:08 jimporter