fix(--list-commands): fix --json flag
This commit is contained in:
parent
fbbd9ae249
commit
207aef7cb3
@ -213,11 +213,11 @@ function listCommands (args) {
|
||||
var json = false
|
||||
var patterns = []
|
||||
forEach(args, function (arg) {
|
||||
if (arg === -'--json') {
|
||||
if (arg === '--json') {
|
||||
json = true
|
||||
} else {
|
||||
patterns.push(arg)
|
||||
}
|
||||
|
||||
patterns.push(arg)
|
||||
})
|
||||
|
||||
if (patterns.length) {
|
||||
|
Loading…
Reference in New Issue
Block a user