diff --git a/cmd/main.go b/cmd/main.go index b513ddb6..6b86f90f 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -128,6 +128,7 @@ Formats: Commands: tool tools for working with test2json output + help print this help next `) } diff --git a/cmd/testdata/gotestsum-help-text b/cmd/testdata/gotestsum-help-text index d5996d38..430f9755 100644 --- a/cmd/testdata/gotestsum-help-text +++ b/cmd/testdata/gotestsum-help-text @@ -32,3 +32,4 @@ Formats: Commands: tool tools for working with test2json output + help print this help next diff --git a/main.go b/main.go index 854472ec..dcd4fb24 100644 --- a/main.go +++ b/main.go @@ -27,6 +27,8 @@ func route(args []string) error { name := args[0] next, rest := cmd.Next(args[1:]) switch next { + case "help", "?": + return cmd.Run(name, []string{"--help"}) case "tool": return tool.Run(name+" "+next, rest) default: