rvesse / airline

Java annotation-based framework for parsing Git like command line structures with deep extensibility
https://rvesse.github.io/airline/
Apache License 2.0
128 stars 20 forks source link

Deprecate and remove arity on @Arguments #40

Closed rvesse closed 8 years ago

rvesse commented 8 years ago

Currently @Arguments supports an arity field which actually acts as a constraint on the maximum arity of the arguments rather than specifying how many values are expected. This is confusing because it differs from what the arity field on @Option does.

Since we now have the restrictions system and specifically the @MaxOccurrences annotation it would be better to deprecate this field and encourage use of the appropriate restriction annotation instead.

Therefore it is proposed to deprecate it in 2.1.x and then remove it in 2.2.x

rvesse commented 8 years ago

Re-assigned to 2.2.x since the deprecation has been done for 2.1.1 and it can thus be removed in 2.2.x