Skip to content

Commit

Permalink
Make pkg argument optional for lerna diff (#831)
Browse files Browse the repository at this point in the history
This also hides the progress bar, which is not needed for diff.

Fixes #816
  • Loading branch information
evocateur committed May 21, 2017
1 parent 1a8571c commit f0b250a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/commands/DiffCommand.js
Expand Up @@ -8,7 +8,7 @@ export function handler(argv) {
return new DiffCommand([argv.pkg], argv).run();
}

export const command = "diff <pkg>";
export const command = "diff [pkg]";

export const describe = "Diff all packages or a single package since the last release.";

Expand All @@ -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) {
Expand Down

0 comments on commit f0b250a

Please sign in to comment.