From c4e2f610e347e993afcc9cb33e0380fec8a7b57f Mon Sep 17 00:00:00 2001 From: David Diaz Date: Mon, 30 Apr 2018 19:53:45 -0600 Subject: [PATCH] Cleaning up flags. --- bin/cli/commands/list.js | 2 +- bin/cli/commands/request.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() {