File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -364,15 +364,15 @@ func TestCliError(t *testing.T) {
364364 }
365365 buf .Reset ()
366366
367- // Using -cat without -list
367+ // Using -- cat without - -list
368368 os .Args = []string {"cli" , "--cat" , "6" }
369369 Cli (w , "v1.0" , func (int ) {})
370370 if ! strings .Contains (buf .String (), "error: cannot use --cat without --list" ) {
371371 t .Errorf ("Expected error message to be printed, got %s\n " , buf .String ())
372372 }
373373 buf .Reset ()
374374
375- // Using -cat with -list but invalid category
375+ // Using -- cat with - -list but invalid category
376376 os .Args = []string {"cli" , "--list" , "--cat" , "6" }
377377 Cli (w , "v1.0" , func (int ) {})
378378
@@ -382,7 +382,7 @@ func TestCliError(t *testing.T) {
382382 }
383383 buf .Reset ()
384384
385- // Using -list after -cat but without category value
385+ // Using -- list after - -cat but without category value
386386 os .Args = []string {"cli" , "--cat" , "-list" }
387387 Cli (w , "v1.0" , func (int ) {})
388388
You can’t perform that action at this time.
0 commit comments