Skip to content

Commit

Permalink
fix(lint): clarify error messages to say one filename arg is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored and daveshanley committed Oct 16, 2022
1 parent 6192b7b commit 64576f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ func GetLintCommand() *cobra.Command {

// check for file args
if len(args) != 1 {
pterm.Error.Println("Please supply OpenAPI specification(s) to lint")
pterm.Error.Println("Please supply an OpenAPI specification to lint")
pterm.Println()
return fmt.Errorf("no files supplied")
return fmt.Errorf("no file supplied")
}

// read file.
Expand Down

0 comments on commit 64576f3

Please sign in to comment.