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 completion to "help" command arguments #10

Open
stalowyjez opened this issue Aug 19, 2020 · 1 comment
Open

Add completion to "help" command arguments #10

stalowyjez opened this issue Aug 19, 2020 · 1 comment

Comments

@stalowyjez
Copy link

It might be not that easy to implement, but I think it's a nice improvement

@dextero
Copy link
Owner

dextero commented Aug 19, 2020

You mean making the topic argument autocomplete available commands? That's a great suggestion!

To make this work, it's necessary to make the completer access the Cmd object itself, and self does not exist yet at the point of defining a class method. With the current method of handling completions, I think it would be necessary to set up do_help dynamically when Cmd is constructed, but it should be doable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants