From f0b250a610e90692b7f92e5bb5b71ecc6931ba68 Mon Sep 17 00:00:00 2001 From: Daniel Stockman Date: Sun, 21 May 2017 13:28:14 -0700 Subject: [PATCH] Make pkg argument optional for lerna diff (#831) This also hides the progress bar, which is not needed for diff. Fixes #816 --- src/commands/DiffCommand.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/DiffCommand.js b/src/commands/DiffCommand.js index 866a066b69..7d934e1c1d 100644 --- a/src/commands/DiffCommand.js +++ b/src/commands/DiffCommand.js @@ -8,7 +8,7 @@ export function handler(argv) { return new DiffCommand([argv.pkg], argv).run(); } -export const command = "diff "; +export const command = "diff [pkg]"; export const describe = "Diff all packages or a single package since the last release."; @@ -26,6 +26,9 @@ export default class DiffCommand extends Command { initialize(callback) { const packageName = this.input[0]; + // don't interrupt spawned or streaming stdio + this.logger.disableProgress(); + let targetPackage; if (packageName) {