@@ -108,22 +108,26 @@ setup() {
108108 run lets test-options --kv-opt
109109
110110 assert_failure
111- assert_line --index 1 " lets: 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"
111+ assert_line --index 0 " lets: command failed:"
112+ assert_line --index 1 " └─ test-options <-- failed here"
113+ assert_line --index 2 " lets: failed to parse docopt options for cmd test-options: --kv-opt requires argument"
114+ assert_line --index 3 " Usage:"
115+ assert_line --index 4 " lets test-options [--kv-opt=<kv-opt>] [--bool-opt] [--attr=<attr>...] [<args>...]"
116+ assert_line --index 5 " Options:"
117+ assert_line --index 6 " <args>... Positional args in the end"
118+ assert_line --index 7 " --bool-opt, -b Boolean opt"
119+ assert_line --index 8 " --kv-opt=<kv-opt>, -K Key value opt"
120+ assert_line --index 9 " --attr=<attr>... Repeated kv args"
119121}
120122
121123@test " command_options: wrong usage" {
122124 run lets options-wrong-usage
123125
124126 assert_failure
125- assert_line --index 1 " lets: failed to parse docopt options for cmd options-wrong-usage: unknown option or argument: options-wrong-usage"
126- assert_line --index 2 " Usage: lets options-wrong-usage-xxx"
127+ assert_line --index 0 " lets: command failed:"
128+ assert_line --index 1 " └─ options-wrong-usage <-- failed here"
129+ assert_line --index 2 " lets: failed to parse docopt options for cmd options-wrong-usage: unknown option or argument: options-wrong-usage"
130+ assert_line --index 3 " Usage: lets options-wrong-usage-xxx"
127131}
128132
129133@test " command_options: should not break json argument" {
0 commit comments