[YANGTOOLS-1429] yang-model-validator has an illegal option 'no-wul' Created: 22/Apr/22 Updated: 23/Apr/22 Resolved: 23/Apr/22 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | tools |
| Affects Version/s: | 8.0.3 |
| Fix Version/s: | 8.0.4 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Sangwook Ha | Assignee: | Sangwook Ha |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
The short option of yang-model-validator, no-wul, to turn off warnings against unkeyed lists includes an illegal character: $ java -jar yang-model-validator-9.0.0-SNAPSHOT-jar-with-dependencies.jar -p ../src/main/yang/ example Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: java.lang.IllegalArgumentException: The option 'no-wul' contains an illegal character : '-' at org.apache.commons.cli.OptionValidator.validate(OptionValidator.java:77) at org.apache.commons.cli.Option.<init>(Option.java:387) at org.opendaylight.yangtools.yang.validator.Main.<clinit>(Main.java:83)
And also having two options to turn on & off the warnings is confusing regarding the default behavior when neither option is used. It would be better to have a single option to change the default behavior. |