summaryrefslogtreecommitdiffstats
path: root/tests/vty
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-06-12 18:35:46 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-06-14 17:44:21 +0200
commit32e6710487a716a7ad03860426bb5e237fae8f5a (patch)
tree240a28da9901f184191e6e85073e3db14388fc0b /tests/vty
parent7e1b03f763350fefa1a68e45764e2076063fdb15 (diff)
vty: command.c: Fix: single-choice optional args are no longer passed incomplete to vty func
For instance, take command "single0 [one]": If user executes "single0 on", VTY func will receive argv[0]="one" instead of argv[0]="on". Related: OS#4045 Change-Id: I5f4e2d16c62a2d22717989c6acc77450957168cb
Diffstat (limited to 'tests/vty')
-rw-r--r--tests/vty/vty_transcript_test.vty2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/vty/vty_transcript_test.vty b/tests/vty/vty_transcript_test.vty
index f2dbacbf..db58830e 100644
--- a/tests/vty/vty_transcript_test.vty
+++ b/tests/vty/vty_transcript_test.vty
@@ -80,7 +80,7 @@ vty_transcript_test> single0 one
ok argc=1 one
vty_transcript_test> single0 on
-ok argc=1 on
+ok argc=1 one
vty_transcript_test> single0
ok argc=0