Skip to content

Commit 6a2ac89

Browse files
authored
fix: bad output on unknown CLI command (#252)
1 parent 1d7832d commit 6a2ac89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/asar.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ program.command('extract <archive> <dest>')
7373
})
7474

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

8080
program.parse(process.argv)

0 commit comments

Comments
 (0)