Skip to content

Handle argparse %(default)s placeholder (and others?) #46

@jimporter

Description

@jimporter

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions