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

Restrictions help hints not output in a deterministic order #50

Closed rvesse closed 7 years ago

rvesse commented 8 years ago

Noticed this in our internal use of airline

Where a option/argument has multiple restrictions apply to it and these all provide help hints the order in which these hints get included in the help output is nondeterministic.

This means that generating the help multiple times can produce slightly different output each time. In order to avoid this we should ensure that the processing of help hints enforces a deterministic order e.g. Based upon the class of restriction