Fix the short option for 'no-warning-for-unkeyed-lists' 95/100595/1
authorSangwook Ha <sangwook.ha@verizon.com>
Fri, 22 Apr 2022 16:13:03 +0000 (09:13 -0700)
committerRobert Varga <nite@hq.sk>
Sat, 23 Apr 2022 11:16:02 +0000 (11:16 +0000)
commitc26026934f6cbfe07ec86b6cbc6c23229f67d5a5
tree72d64939baed95efc3a7defcd5611875f2c9c3c5
parent49921abba493b52581810ad40f3140e871ad854a
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>
(cherry picked from commit db8732c024c02cadb7814149fe23fab85533944b)
tools/yang-model-validator/src/main/java/org/opendaylight/yangtools/yang/validator/Main.java