-
Notifications
You must be signed in to change notification settings - Fork 422
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
hiding variable names should be default in help output #1984
Comments
Interesting question. How did you get that variable name Also, please be aware, you can customize unhelpful variable names with the Most CLI tools that I am aware of do display a parameter label for options that take a parameter. Some examples: ping, ls and git. So, I am curious why you believe that hiding the option parameter label should be the default. |
Thanks...paramLabel would cover what I'd want to do (mainly to hide that ugly variable name) :-) |
Oh interesting! Still, in the example you provided, that should result in picocli generating the label Unless the method name Glad to hear that explicitly specifying the |
Yep, it's a kotlin'ism....which is why the default didn't work 🙂 |
Okay, I did some reading and it seems that Kotlin does "name mangling" for I will look at truncating the |
Kotlin `internal` methods have mangled names with embedded "$"; truncate this portion off the paramLabel
I pushed a fix for this, and from the next version of picocli (4.7.2), the Thank you again for raising this. |
Hiding the variable names as described here:
https://stackoverflow.com/questions/65130421/picocli-cli-parser-hide-the-java-variable-name-while-rendering-the-output
should be the default behavior IMHO. I can't see why anyone would want the current default behavior...
e.g., if you use a parser for the option, it prints this out:
Not sure why you'd ever want to show the $parser bit unless you're in some sort of parser debug mode...
The text was updated successfully, but these errors were encountered: