cbeust / jcommander

Command line parsing framework for Java
Apache License 2.0
1.94k stars 332 forks source link

Allow acceptUnknownOption with variableArity #555

Closed hsudhof closed 10 months ago

hsudhof commented 1 year ago

VariableArity makes it difficult to decide whether a token belongs to a preceding variableArity Parameter or is a new unknown parameter.

This commits makes a variableArity Parameter consume all tokens until it encounters a known option.

Fixes: #377

hsudhof commented 10 months ago

ACK