cbeust / jcommander

Command line parsing framework for Java
Apache License 2.0
1.97k stars 334 forks source link

Allow acceptUnknownOption with variableArity #555

Closed hsudhof closed 1 year 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 1 year ago

ACK