Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jimporter opened this issue Aug 23, 2021 · 0 comments · Fixed by #140
Closed

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

jimporter opened this issue Aug 23, 2021 · 0 comments · Fixed by #140
Assignees
Labels
enhancement New feature or request external-request You asked, we did good-first-issue Good for newcomers (good-first-issue)

Comments

@jimporter
Copy link
Contributor

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.

@casperdcl casperdcl added the enhancement New feature or request label Aug 23, 2021
@casperdcl casperdcl added good-first-issue Good for newcomers (good-first-issue) external-request You asked, we did labels Jul 13, 2023
@casperdcl casperdcl linked a pull request Jul 13, 2023 that will close this issue
@casperdcl casperdcl self-assigned this Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request external-request You asked, we did good-first-issue Good for newcomers (good-first-issue)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants