Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1429

yang-model-validator has an illegal option 'no-wul'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 8.0.4
    • 8.0.3
    • tools
    • None

      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.

            sangwookha Sangwook Ha
            sangwookha Sangwook Ha
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: