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
129 stars 20 forks source link

Support `arity` for `@Arguments` #5

Closed rvesse closed 9 years ago

rvesse commented 9 years ago

Currently @Arguments is unbounded which is the desired default behaviour however sometimes it would be useful to be able to restrict the arity of arguments.

This is particularly true because when using @Arguments unrecognised arguments get treated as arguments rather than errors which can lead to unexpected behaviour