@@ -108,22 +108,22 @@ setup() {
108108 run lets test-options --kv-opt
109109
110110 assert_failure
111- assert_line --index 0 " failed to parse docopt options for cmd test-options: --kv-opt requires argument"
112- assert_line --index 1 " Usage:"
113- assert_line --index 2 " lets test-options [--kv-opt=<kv-opt>] [--bool-opt] [--attr=<attr>...] [<args>...]"
114- assert_line --index 3 " Options:"
115- assert_line --index 4 " <args>... Positional args in the end"
116- assert_line --index 5 " --bool-opt, -b Boolean opt"
117- assert_line --index 6 " --kv-opt=<kv-opt>, -K Key value opt"
118- assert_line --index 7 " --attr=<attr>... Repeated kv args"
111+ assert_line --index 1 " failed to parse docopt options for cmd test-options: --kv-opt requires argument"
112+ assert_line --index 2 " Usage:"
113+ assert_line --index 3 " lets test-options [--kv-opt=<kv-opt>] [--bool-opt] [--attr=<attr>...] [<args>...]"
114+ assert_line --index 4 " Options:"
115+ assert_line --index 5 " <args>... Positional args in the end"
116+ assert_line --index 6 " --bool-opt, -b Boolean opt"
117+ assert_line --index 7 " --kv-opt=<kv-opt>, -K Key value opt"
118+ assert_line --index 8 " --attr=<attr>... Repeated kv args"
119119}
120120
121121@test " command_options: wrong usage" {
122122 run lets options-wrong-usage
123123
124124 assert_failure
125- assert_line --index 0 " failed to parse docopt options for cmd options-wrong-usage: no such option"
126- assert_line --index 1 " Usage: lets options-wrong-usage-xxx"
125+ assert_line --index 1 " failed to parse docopt options for cmd options-wrong-usage: no such option"
126+ assert_line --index 2 " Usage: lets options-wrong-usage-xxx"
127127}
128128
129129@test " command_options: should not break json argument" {
0 commit comments