]> git.puffer.fish Git - matthieu/frr.git/commit
Fix optional arguments with description interactions
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 26 Aug 2015 16:01:31 +0000 (09:01 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 26 Aug 2015 16:01:31 +0000 (09:01 -0700)
commit16cf945a5066f56237a15828c99ded4f42266f0a
tree4f06cf5c5561e2fef8451abce535e4fada9a6aa6
parent6e9197093cd0942a6ddfd8ce24739419fe6e090d
Fix optional arguments with description interactions

Ticket: CM-6659
Reviewed by: CCR-3203
Testing: See bug

If you have a cli like this:
"neighbor WORD interface {v6only}"

When in the cli you hit ? after entering v6only you get this:

tor-11(config-router)# neighbor swp1 interface v6only
% There is no matched command.
tor-11(config-router)# neighbor swp1 interface v6only

With this fix we now see:
tor-22(config-router)# neighbor swp1 interface v6only
<cr>
tor-22(config-router)# neighbor swp1 interface v6only

This behavior is now consistent with non-optional last
arguments.
lib/command.c