Skip to content

Commit

Permalink
Fixed default positional enum error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukairo-02 committed Jul 25, 2024
1 parent a94f80a commit 4c97ab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@drizzle-team/brocli",
"type": "module",
"author": "Drizzle Team",
"version": "0.9.0",
"version": "0.9.1",
"description": "Typed CLI command runner",
"license": "Apache-2.0",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion src/event-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export const defaultEventHandler: EventHandler = async (event) => {
const values = option.enumVals!;

msg = option.type === 'positional'
? `Invalid value: value for the argument '${matchedName}' must be either one of the following: ${
? `Invalid value: value for the positional argument '${option.name}' must be either one of the following: ${
values.join(', ')
}; Received: ${data}`
: `Invalid value: value for the argument '${matchedName}' must be either one of the following: ${
Expand Down

0 comments on commit 4c97ab8

Please sign in to comment.