Skip to content

Commit

Permalink
fix: bad output on unknown CLI command (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
CanadaHonk committed Jan 17, 2023
1 parent 1d7832d commit 6a2ac89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/asar.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ program.command('extract <archive> <dest>')
})

program.command('*')
.action(function (cmd) {
console.log('asar: \'%s\' is not an asar command. See \'asar --help\'.', cmd)
.action(function (_cmd, args) {
console.log('asar: \'%s\' is not an asar command. See \'asar --help\'.', args[0])
})

program.parse(process.argv)
Expand Down

0 comments on commit 6a2ac89

Please sign in to comment.