diff --git a/src/args.ts b/src/args.ts index ca9f4ec..95a616f 100644 --- a/src/args.ts +++ b/src/args.ts @@ -30,7 +30,7 @@ export function parseArgs(rawArgs: string[], argsDef: ArgsDef): ParsedArgs { const [, ...positionalArguments] = parsed._; const parsedArgsProxy = new Proxy(parsed, { - get(target: ParsedArgs, prop: string) { + get(target: ParsedArgs, prop: string) { return target[prop] ?? target[camelCase(prop)] ?? target[kebabCase(prop)]; }, });