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

Autocompletion for options with split=... #2069

Open
rsenden opened this issue Jul 20, 2023 · 2 comments
Open

Autocompletion for options with split=... #2069

rsenden opened this issue Jul 20, 2023 · 2 comments

Comments

@rsenden
Copy link
Contributor

rsenden commented Jul 20, 2023

Suppose I have an option like the following:

@Option(names = "--opt", required = false, split = ",")
@Getter private SomeEnum[] values;

public static enum MyEnum { myOpt, otherOpt, someOpt }

This would allow users to enter something like this on the command line: --opt myOpt,someOpt.

However, autocompletion only seems to support a single option value:

  • --opt my<tab><tab> generates --opt myOpt with a trailing space, so you'd need to do a backspace to enter a comma
  • --opt myOpt,<tab><tab> doesn't show any completion candidates

Any chance that this can be improved, in particular the second item?

@remkop
Copy link
Owner

remkop commented Jul 24, 2023

Sorry for the late response.
My time to work on picocli is extremely limited.
I can review pull requests but I don't see myself working on this ticket myself in the near future...

@rsenden
Copy link
Contributor Author

rsenden commented Jul 27, 2023

@remkop Thanks for the notice, we'll look into finding a solution and raising a PR for this issue as time allows.

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