]> git.proxmox.com Git - mirror_frr.git/commit - python/clidef.py
lib/clippy: assert() for non-optional args
authorDavid Lamparter <equinox@diac24.net>
Tue, 4 Jun 2019 18:27:05 +0000 (20:27 +0200)
committerDavid Lamparter <equinox@diac24.net>
Wed, 12 Jun 2019 17:23:00 +0000 (19:23 +0200)
commit4381a59be0d5122c732cc9831af9d82e6fa87c4a
treef729cb01f23ff70d82a04bc46695c74d0e18de87
parent3779776a39d81168b701b2cc2ce50a3b2331d3e8
lib/clippy: assert() for non-optional args

This is mostly to help static analysis; since we know from the command
string which args are optional and which aren't, we can add assert()
statements on them.

Fixes: #3270
Signed-off-by: David Lamparter <equinox@diac24.net>
python/clidef.py