From da001832dbdb268b3bf38f359c72b40c401273e4 Mon Sep 17 00:00:00 2001 From: Eddie Monge Date: Thu, 24 Oct 2013 10:48:55 -0700 Subject: [PATCH] fix(gen): options should have descriptions Add --help info for the options coffee and minsafe --- app/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/index.js b/app/index.js index d1526bade..fc793fa65 100644 --- a/app/index.js +++ b/app/index.js @@ -22,7 +22,9 @@ var Generator = module.exports = function Generator(args, options) { this.appPath = this.env.options.appPath; if (typeof this.env.options.coffee === 'undefined') { - this.option('coffee'); + this.option('coffee', { + desc: 'Generate CoffeeScript instead of JavaScript' + }); // attempt to detect if user is using CS or not // if cml arg provided, use that; else look for the existence of cs @@ -35,7 +37,9 @@ var Generator = module.exports = function Generator(args, options) { } if (typeof this.env.options.minsafe === 'undefined') { - this.option('minsafe'); + this.option('minsafe', { + desc: 'Generate AngularJS minification safe code' + }); this.env.options.minsafe = this.options.minsafe; args.push('--minsafe'); }