Skip to content

Commit

Permalink
Correct reference to flag for backwards compatible configuration (#594)
Browse files Browse the repository at this point in the history
As raised in #591, the flag we're reporting as available for backwards
compatibility does not exist.

Closes #591.
  • Loading branch information
Jamie Tanna committed May 25, 2022
1 parent e238df5 commit cf98a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oapi-codegen/oapi-codegen.go
Expand Up @@ -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, ", "))
}

Expand Down

0 comments on commit cf98a10

Please sign in to comment.