diff --git a/bin/cli/commands/list.js b/bin/cli/commands/list.js index 114082e..bac8b92 100644 --- a/bin/cli/commands/list.js +++ b/bin/cli/commands/list.js @@ -9,7 +9,7 @@ class ListCommand extends Base { const { flags } = this.parse(ListCommand); const Beau = this.loadConfig(flags.config); - if (flags.format === false) { + if (flags['no-format']) { return Beau.requests.list.forEach( ({ VERB, ALIAS, ENDPOINT, PATH }) => this.log( diff --git a/bin/cli/commands/request.js b/bin/cli/commands/request.js index 85eb364..6885006 100644 --- a/bin/cli/commands/request.js +++ b/bin/cli/commands/request.js @@ -29,7 +29,7 @@ class RequestCommand extends Base { new Line().output(); - jsome(verbose ? res : body); + jsome((verbose ? res : body) || null); } async run() {