diff --git a/package.json b/package.json index eaa983f..1b7e068 100755 --- a/package.json +++ b/package.json @@ -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, diff --git a/src/event-handler.ts b/src/event-handler.ts index c4d78b1..f21bd48 100644 --- a/src/event-handler.ts +++ b/src/event-handler.ts @@ -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) => {