Fix the short option for 'no-warning-for-unkeyed-lists' 23/100723/1
authorSangwook Ha <sangwook.ha@verizon.com>
Fri, 22 Apr 2022 16:13:03 +0000 (09:13 -0700)
committerSangwook Ha <sangwook.ha@verizon.com>
Fri, 22 Apr 2022 16:35:34 +0000 (09:35 -0700)
commitdb8732c024c02cadb7814149fe23fab85533944b
tree2ba2a66d3328d0d5b21f340514c34831df7db50c
parent502ec3268436a6f662fae661462baf3c2f73b5ad
Fix the short option for 'no-warning-for-unkeyed-lists'

Dash "-" is not allowed in the short option string. Replace it
with 'K', a single character option consistent with others.

Having two options to control warnings on the unkeyed list,
although mutually exclusive, makes the default behavior unclear
when neither option is used.

Simplify the options by removing 'warning-for-unkeyed-lists'
while preserving the original default behavior of warning against
unkeyed lists when neither option is used.

JIRA: YANGTOOLS-1429
Change-Id: I6c37892ae7e39864420a0e6c15dd2fc1cf0ba952
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
tools/yang-model-validator/src/main/java/org/opendaylight/yangtools/yang/validator/Main.java