Skip to content

Commit d3ee303

Browse files
committed
update tests for issue_2135 pr_2139
Signed-off-by: zzspoon <znspooner@gmail.com>
1 parent 8865e20 commit d3ee303

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ func TestCommand_Run_SubcommandFullPath(t *testing.T) {
21742174

21752175
outString := out.String()
21762176
require.Contains(t, outString, "foo bar - does bar things")
2177-
require.Contains(t, outString, "foo bar [command [command options]] [arguments...]")
2177+
require.Contains(t, outString, "foo bar [options] [arguments...]")
21782178
}
21792179

21802180
func TestCommand_Run_Help(t *testing.T) {

examples_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func ExampleCommand_Run_subcommandNoAction() {
232232
// greet describeit - use it to see a description
233233
//
234234
// USAGE:
235-
// greet describeit [command [command options]] [arguments...]
235+
// greet describeit [options] [arguments...]
236236
//
237237
// DESCRIPTION:
238238
// This is how we describe describeit the function

help_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ func TestShowSubcommandHelp_GlobalOptions(t *testing.T) {
713713
foo frobbly
714714
715715
USAGE:
716-
foo frobbly [command [command options]]
716+
foo frobbly [options]
717717
718718
OPTIONS:
719719
--bar string

0 commit comments

Comments
 (0)