Replies: 1 comment
-
|
Actually it seems one can use bean validation annotations, or this code. (Of course removing the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to limit the number of times the
-vfor verbosity can appear, so I have setup the following option with arity@Option( names = ["-v"], description = [ "Specify multiple -v options to increase verbosity.", "For example, `-v -v -v` or `-vvv`" ], arity = "0..3" ) var verbosity = booleanArrayOf()as explained in the doc (not quite sure where source is, it seems like adoc but I only saw html files in the repo), but with the
arity.and it renders like this in the help:
I think I'm misusing
arityhere. How is it possible to do that declaratively, may this has to be something to write programatically ?Beta Was this translation helpful? Give feedback.
All reactions