Skip to content

Commit

Permalink
Merge pull request #7 from ahamid/fix-cli-moduletype-opt
Browse files Browse the repository at this point in the history
fix module-type opt
  • Loading branch information
zaach committed Mar 31, 2014
2 parents a6fbb54 + 7a27750 commit c177ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function processGrammar (file, name) {
}

var settings = grammar.options || {};
if (!settings.moduleType) settings.moduleType = opts.moduleType;
if (!settings.moduleType) settings.moduleType = opts['module-type'];
if (!settings.moduleName && name) settings.moduleName = name.replace(/-\w/g, function (match){ return match.charAt(1).toUpperCase(); });

grammar.options = settings;
Expand Down

0 comments on commit c177ca8

Please sign in to comment.