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

Add a shell-completion-script generation feature #1

natecook1000 opened this issue Feb 27, 2020 · 0 comments

Add a shell-completion-script generation feature #1

natecook1000 opened this issue Feb 27, 2020 · 0 comments


Copy link

@natecook1000 natecook1000 commented Feb 27, 2020

ArgumentParser should have the ability to generate code-completion scripts for different shells. This should initially support zsh and bash, for feature parity with the SwiftPM's completion-tool command, but be extensible to other shell completion styles as well.

One design would be to mimic the automatically-provided --help flag with a --generate-completion-tool option, that would take the name of the shell as its value. We'll need to augment ArgumentHelp so that an author can indicate the kinds of completions that are available, such as filename or path completion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.