diff --git a/package.json b/package.json index a77d4c3..fccc578 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@drizzle-team/brocli", "type": "module", "author": "Drizzle Team", - "version": "0.0.3", + "version": "0.0.4", "description": "Typed CLI command runner", "license": "Apache-2.0", "sideEffects": false, diff --git a/src/command-core.ts b/src/command-core.ts index 2774102..040eb50 100644 --- a/src/command-core.ts +++ b/src/command-core.ts @@ -291,9 +291,8 @@ const parseArg = (options: [string, GenericBuilderInternalsFields][], arg: strin const parseOptions = (command: Command, args: string[]): Record | undefined => { const options = command.options; - if (!options) return undefined; - const optEntries = Object.entries(options); + const optEntries = Object.entries(options ?? {} as Exclude); const result: Record = {};