From 7a27750100ec3011a34e5e535136a23945c11809 Mon Sep 17 00:00:00 2001 From: Aaron Hamid Date: Sat, 4 Jan 2014 22:44:17 -0500 Subject: [PATCH] fix module-type opt --- cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.js b/cli.js index b78e317..55dd1d2 100755 --- a/cli.js +++ b/cli.js @@ -62,7 +62,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;