From e423974602e2995f873ce9983e5c93f0e8e46ace Mon Sep 17 00:00:00 2001 From: Johannes Koch Date: Fri, 27 Jan 2023 13:00:40 +0100 Subject: [PATCH] help command does not expect args --- command/help.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/command/help.go b/command/help.go index 6eadb61a4..333b2e7a4 100644 --- a/command/help.go +++ b/command/help.go @@ -2,7 +2,6 @@ package command import ( "context" - "fmt" "github.com/avenga/couper/config" "github.com/sirupsen/logrus" @@ -40,15 +39,7 @@ func NewHelp(ctx context.Context) *Help { func (h Help) Execute(args Args, _ *config.Couper, _ *logrus.Entry) error { defer Synopsis() - if len(args) == 0 { - h.Usage() - return fmt.Errorf("missing command argument") - } - cmd := NewCommand(h.ctx, args[0]) - if cmd == nil { - return fmt.Errorf("unknown command: %s", args[0]) - } - cmd.Usage() + h.Usage() return nil }