]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bridge: reorder cmd line arg parsing to let "-c" detected as "color" option
authorGokul Sivakumar <gokulkumar792@gmail.com>
Tue, 17 Aug 2021 17:28:05 +0000 (22:58 +0530)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 18 Aug 2021 21:04:53 +0000 (14:04 -0700)
commit82149efee93924192ce83c03375b729ee003ca78
tree49773f9ceba7d2b0b29e49892b24e4a4dd26818c
parent3a09567f7d583a8255d3bb9c07e2444375e53494
bridge: reorder cmd line arg parsing to let "-c" detected as "color" option

As per the man/man8/bridge.8 page, the shorthand cmd line arg "-c" can be
used to colorize the bridge cmd output. But while parsing the args in while
loop, matches() detects "-c" as "-compressedvlans" instead of "-color", so
fix this by doing the check for "-color" option first before checking for
"-compressedvlans".

Signed-off-by: Gokul Sivakumar <gokulkumar792@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
bridge/bridge.c