Skip to content

Commit

Permalink
Fixed message in missing_args_error displaying command instead of…
Browse files Browse the repository at this point in the history
… command's name (fixes #2)
  • Loading branch information
Sukairo-02 committed Oct 28, 2024
1 parent 6f233fe commit 65d1432
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.10.1",
"version": "0.10.2",
"description": "Modern type-safe way of building CLIs",
"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 @@ -451,7 +451,7 @@ export const defaultEventHandler: EventHandler = async (event) => {
}

case 'missing_args_error': {
const missingOpts = event.missing;
const { missing: missingOpts, command } = event;

msg = `Command '${command.name}' is missing following required options: ${
missingOpts.map((opt) => {
Expand Down

0 comments on commit 65d1432

Please sign in to comment.