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

Commands with duplicate names within a group silently override each other #95

Closed rvesse closed 5 years ago

rvesse commented 5 years ago

Noticed a bug when copying pasting some command classes in a new project. If you forget to update the name in the @Command annotation Airline doesn't complain but rather one command takes precedence (seemingly at random).

In this scenario Airline should issue an appropriate error message and refuse to generate a parser

rvesse commented 5 years ago

Airline now throws an error message detailing the problem and prompting the developer to change their @Command annotations appropriately