blob: 155774463d814af1eb06274dfb5cadfbdb2a423b [file] [log] [blame]
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +01001vty_transcript_test> list
2...
3 multi0 (one|two|three)
4 multi1 ([one]|[two]|[three])
Neels Hofmeyrb55f4d22019-01-31 08:13:31 +01005 multi2 [(one|two|three)]
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +01006
7vty_transcript_test> multi0 ?
8 one 1
9 two 2
10 three 3
11
12vty_transcript_test> multi0 one
13ok argc=1 one
14
15vty_transcript_test> multi0 two
16ok argc=1 two
17
18vty_transcript_test> multi0 o
19ok argc=1 o
20
21vty_transcript_test> multi0 t
Pau Espin Pedrol6df2e442019-06-11 21:19:46 +020022% Ambiguous command.
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +010023
24vty_transcript_test> multi0 th
25ok argc=1 th
26
27vty_transcript_test> multi0
28% Command incomplete.
29
30vty_transcript_test> multi1 ?
31 [one] 1
32 [two] 2
33 [three] 3
34
35vty_transcript_test> multi1 one
36ok argc=1 one
37
38vty_transcript_test> multi1 two
39ok argc=1 two
40
41vty_transcript_test> multi1 o
42ok argc=1 o
43
44vty_transcript_test> multi1 t
Pau Espin Pedrol6df2e442019-06-11 21:19:46 +020045% Ambiguous command.
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +010046
47vty_transcript_test> multi1 th
48ok argc=1 th
49
50vty_transcript_test> multi1
Neels Hofmeyrc1978092019-01-31 08:14:26 +010051ok argc=0
Neels Hofmeyrfaa49e22019-01-31 09:06:53 +010052
53vty_transcript_test> multi1 [one]
54% Unknown command.
Neels Hofmeyrb55f4d22019-01-31 08:13:31 +010055
56vty_transcript_test> multi2 ?
57 [one] 1
58 [two] 2
59 [three] 3
60
61vty_transcript_test> multi2 one
62ok argc=1 one
63
64vty_transcript_test> multi2 two
65ok argc=1 two
66
67vty_transcript_test> multi2
68ok argc=0
Vadim Yanitskiy8c9befe2019-06-01 00:10:44 +070069
70vty_transcript_test> multi0 thr
71ok argc=1 thr
72
73vty_transcript_test> multi1 on
74ok argc=1 on
75
76vty_transcript_test> multi2 t
Pau Espin Pedrol6df2e442019-06-11 21:19:46 +020077% Ambiguous command.
Pau Espin Pedrol14aadd52019-06-12 18:34:34 +020078
79vty_transcript_test> single0 one
80ok argc=1 one
81
82vty_transcript_test> single0 on
83ok argc=1 on
84
85vty_transcript_test> single0
86ok argc=0