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.
- relates to
-
YANGTOOLS-1397 Expose a knob to control warnings about unkeyed lists with config=true
- Resolved