Skip to content

Commit 13dab8e

Browse files
committed
fix: oops
1 parent 99914b6 commit 13dab8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class CAC extends EventEmitter {
237237

238238
const minimalArgsCount = command.args.filter(arg => arg.required).length
239239

240-
if (command.args.length < minimalArgsCount) {
240+
if (args.length < minimalArgsCount) {
241241
console.error(
242242
`error: missing required args for command \`${command.rawName}\``
243243
)

0 commit comments

Comments
 (0)