Skip to content

Commit

Permalink
fix(gen): options should have descriptions
Browse files Browse the repository at this point in the history
Add --help info for the options coffee and minsafe
  • Loading branch information
eddiemonge committed Oct 24, 2013
1 parent 889befb commit da00183
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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');
}
Expand Down

0 comments on commit da00183

Please sign in to comment.