Skip to content

Commit

Permalink
fix: jsonEnabled when json is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Jun 30, 2021
1 parent 3f7b701 commit 4575be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command.ts
Expand Up @@ -190,7 +190,7 @@ export default abstract class Command {
}

public jsonEnabled(): boolean {
return this.argv.includes('--json')
return !this.ctor.disableJsonFlag && this.argv.includes('--json')
}

/**
Expand Down

0 comments on commit 4575be8

Please sign in to comment.