Skip to content

Commit

Permalink
Merge pull request #409 from eddiemonge/options
Browse files Browse the repository at this point in the history
fix(gen): options should have descriptions
  • Loading branch information
sindresorhus committed Nov 6, 2013
2 parents 4340d6c + da00183 commit 24fb398
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 @@ -31,7 +31,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 @@ -44,7 +46,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 24fb398

Please sign in to comment.