shtab
shtab copied to clipboard
Handle argparse `%(default)s` placeholder (and others?)
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.