From 94102e004596c694332d77dec4b326a934ec9419 Mon Sep 17 00:00:00 2001 From: Johannes Koch Date: Fri, 27 Jan 2023 13:00:40 +0100 Subject: [PATCH 1/2] 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 } From 7417a1d3673745780deb75ce46566baae4fc3a2a Mon Sep 17 00:00:00 2001 From: Johannes Koch Date: Fri, 27 Jan 2023 13:46:07 +0100 Subject: [PATCH 2/2] changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8165d4799..ba5684292 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Unreleased changes are available as `avenga/couper:edge` container. * **Fixed** * Use of [backend-related variables](https://docs.couper.io/configuration/variables#backend) in [`custom_log_fields`](https://docs.couper.io/observation/logging#custom-logging) within a [`backend` block](https://docs.couper.io/configuration/block/backend) ([#658](https://github.com/avenga/couper/pull/658)) * Loop with evaluation error in [`custom_log_fields`](https://docs.couper.io/observation/logging#custom-logging) if log level is `"debug"` ([#659](https://github.com/avenga/couper/pull/659)) + * Removed error message with `couper help` [command](https://docs.couper.io/configuration/command-line) ([#678](https://github.com/avenga/couper/pull/678)) ---