From cf98a103a5337ddd4d31c2d2ac0222e95e7dad7f Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Wed, 25 May 2022 19:10:31 +0100 Subject: [PATCH] Correct reference to flag for backwards compatible configuration (#594) As raised in #591, the flag we're reporting as available for backwards compatibility does not exist. Closes #591. --- cmd/oapi-codegen/oapi-codegen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/oapi-codegen/oapi-codegen.go b/cmd/oapi-codegen/oapi-codegen.go index fe43be6a8..46b97f675 100644 --- a/cmd/oapi-codegen/oapi-codegen.go +++ b/cmd/oapi-codegen/oapi-codegen.go @@ -258,7 +258,7 @@ func updateConfigFromFlags(cfg configuration) (configuration, error) { if len(unsupportedFlags) > 0 { return configuration{}, fmt.Errorf("flags %s aren't supported in "+ - "new config style, please use --old-style-config or update your configuration", + "new config style, please use -old-config-style or update your configuration", strings.Join(unsupportedFlags, ", ")) }