Skip to content

Commit

Permalink
fix: oops
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 26, 2018
1 parent 99914b6 commit 13dab8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class CAC extends EventEmitter {

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

if (command.args.length < minimalArgsCount) {
if (args.length < minimalArgsCount) {
console.error(
`error: missing required args for command \`${command.rawName}\``
)
Expand Down

0 comments on commit 13dab8e

Please sign in to comment.