Skip to content

Commit 24fb398

Browse files
committed
Merge pull request #409 from eddiemonge/options
fix(gen): options should have descriptions
2 parents 4340d6c + da00183 commit 24fb398

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ var Generator = module.exports = function Generator(args, options) {
3131
this.appPath = this.env.options.appPath;
3232

3333
if (typeof this.env.options.coffee === 'undefined') {
34-
this.option('coffee');
34+
this.option('coffee', {
35+
desc: 'Generate CoffeeScript instead of JavaScript'
36+
});
3537

3638
// attempt to detect if user is using CS or not
3739
// if cml arg provided, use that; else look for the existence of cs
@@ -44,7 +46,9 @@ var Generator = module.exports = function Generator(args, options) {
4446
}
4547

4648
if (typeof this.env.options.minsafe === 'undefined') {
47-
this.option('minsafe');
49+
this.option('minsafe', {
50+
desc: 'Generate AngularJS minification safe code'
51+
});
4852
this.env.options.minsafe = this.options.minsafe;
4953
args.push('--minsafe');
5054
}

0 commit comments

Comments
 (0)