Permalink
Browse files

Spaces aren't legal inside passed Jake params.

  • Loading branch information...
1 parent e5be11d commit d3f4d44926416364e54338de336854400360c038 mde committed Oct 1, 2012
Showing with 4 additions and 2 deletions.
  1. +3 −1 bin/cli.js
  2. +1 −1 templates/Jakefile
View
4 bin/cli.js
@@ -142,7 +142,7 @@ if (cmds.length) {
// Get the model properties
if (cmds.slice(2).length > 0) {
- modelCmd = ',' + cmds.slice(2).join(' ');
+ modelCmd = ',' + cmds.slice(2).join('%');
} else modelCmd = '';
// Add Jake argument based on commands
@@ -191,7 +191,9 @@ if (cmds.length) {
cmd += ' --quiet';
}
+ console.log(cmd);
cmd = cmd.split(' ');
+ console.log(cmd);
var jake = require('jake');
jake.run.apply(jake, cmd);
}
View
2 templates/Jakefile
@@ -198,7 +198,7 @@ namespace('gen', function () {
return obj;
}
- var itemsArr = properties.split(' ')
+ var itemsArr = properties.split('%')
, name
, type
, args

0 comments on commit d3f4d44

Please sign in to comment.