Skip to content

Commit da00183

Browse files
committed
fix(gen): options should have descriptions
Add --help info for the options coffee and minsafe
1 parent 889befb commit da00183

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: app/index.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ var Generator = module.exports = function Generator(args, options) {
2222
this.appPath = this.env.options.appPath;
2323

2424
if (typeof this.env.options.coffee === 'undefined') {
25-
this.option('coffee');
25+
this.option('coffee', {
26+
desc: 'Generate CoffeeScript instead of JavaScript'
27+
});
2628

2729
// attempt to detect if user is using CS or not
2830
// 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) {
3537
}
3638

3739
if (typeof this.env.options.minsafe === 'undefined') {
38-
this.option('minsafe');
40+
this.option('minsafe', {
41+
desc: 'Generate AngularJS minification safe code'
42+
});
3943
this.env.options.minsafe = this.options.minsafe;
4044
args.push('--minsafe');
4145
}

0 commit comments

Comments
 (0)