From da5db6477b32c6c80290232d8ad3e84e320e3faa Mon Sep 17 00:00:00 2001 From: hacksalot Date: Tue, 5 Jan 2016 09:42:39 -0500 Subject: [PATCH] Introduce --color and --no-color options. These are handled by Chalk, but need to be registered with Commander.js in order for Chalk to see them. --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 28e68a1..bad1818 100644 --- a/src/index.js +++ b/src/index.js @@ -47,7 +47,9 @@ function main() { .version(PKG.version) .description(chalk.yellow.bold('*** HackMyResume ***')) .option('-o --opts ', 'Path to a .hackmyrc options file') - .option('-s --silent', 'Run in silent mode'); + .option('-s --silent', 'Run in silent mode') + .option('--no-color', 'Disable colors') + .option('--color', 'Enable colors'); //.usage('COMMAND [TO ]'); // Create the NEW command