From 69574f6a695a4184d349876ff196905e7fb992be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Yi=C4=9Fit=20Kaya?= Date: Fri, 30 Jun 2017 01:39:08 +0100 Subject: [PATCH] Fix: emoji should default to true on darwin platforms (#3766) **Summary** Fixes #3764. Follow up to #3126. Adds the missing `[bool]` type descripter to `commander` definitions. **Test plan** Run `yarn` on macOS and enjoy your emojis responsibly. --- src/cli/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/index.js b/src/cli/index.js index a7c17c9bc2..3563284c2d 100644 --- a/src/cli/index.js +++ b/src/cli/index.js @@ -58,7 +58,7 @@ commander.option( ); commander.option('--cache-folder ', 'specify a custom folder to store the yarn cache'); commander.option('--mutex [:specifier]', 'use a mutex to ensure only one yarn instance is executing'); -commander.option('--emoji', 'enable emoji in output', process.platform === 'darwin'); +commander.option('--emoji [bool]', 'enable emoji in output', process.platform === 'darwin'); commander.option('-s, --silent', 'skip Yarn console logs, other types of logs (script output) will be printed'); commander.option('--proxy ', ''); commander.option('--https-proxy ', '');