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, ", ")) }