You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if picocli allows the support for implicit value parameter having an arity of 0..1 and not value is specified.
To make it clear consider the following definition:
@Command(name='sample')
class Sample {
@Option(names="--foo", aritiy="0..1")
String foo
}
Now, the use case requires that when the user specifies the --foo parameter w/o a value an implicit value is assigned to foo. The property default is not a valid workaround because it would not allow to distinguish the absence of that parameter.