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

Support specifying multiple titles for options #39

Closed rvesse closed 4 years ago

rvesse commented 8 years ago

Currently the title field of the @Option annotation only takes a single String which makes it less useful when you have options with arity > 1

It would be good if this was changed to take a String[] and relevant consumers i.e. help and restrictions were appropriately updated to take advantage of this extra information

Note that from a user perspective this change will not be breaking because Java allows array fields in an annotation to be specified as either a single value or as an array initialiser

rvesse commented 4 years ago

Done in 2.8.0