From 8252651dc307d340453eeba408f1875839d68e63 Mon Sep 17 00:00:00 2001 From: Greg Guthe Date: Fri, 6 Apr 2012 19:49:00 -0400 Subject: [PATCH] cli: Add deprecation warning when using coffee option --- lib/cli.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cli.coffee b/lib/cli.coffee index c23d433..75f2aab 100644 --- a/lib/cli.coffee +++ b/lib/cli.coffee @@ -23,6 +23,7 @@ module.exports = -> .option('-q, --quiet', 'Only print critical errors to the screen') .option('-n, --no-color', 'Disable colors in the output') .option('-m, --minify', 'Minify the build (uses uglify-js)') + .option('-c, --coffee', 'Look for and compile coffee-script files') .option('-r, --root ', 'The of the project', process.cwd()+'/') .option('-p, --path ', 'Path of the config file, relative to root', 'jspackle.json') .option('-s, --test_server ', 'Test server', 'http://localhost:9876') @@ -64,5 +65,7 @@ module.exports = -> if program.quiet logging.setClean true logging.setLevel 'critical' + if program.coffee + logging.warn 'The coffee option is deprecated. Any source file ending in .coffee will be compiled.' task()