Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #600 from isao/cli

minor fixes to cli.js
  • Loading branch information...
commit 9d7a669761eb598e8e83d903c3e24f4635ec8757 2 parents 285996f + 8ffa567
@isao isao authored
Showing with 5 additions and 6 deletions.
  1. +2 −3 lib/app/commands/build.js
  2. +3 −3 lib/management/cli.js
View
5 lib/app/commands/build.js
@@ -277,7 +277,7 @@ exports.buildhtml5app = function(cmdOptions, store, config, destination,
fs.writeFileSync(libpath.join(destination, 'index.js'), indexJs, 'utf8');
// Now use the server to generate some of the files
- writeWebPagesToFiles(type, store, destination, urls, config, callback);
+ writeWebPagesToFiles(destination, urls, config, callback);
};
@@ -454,8 +454,7 @@ function forceRelativePaths(root, relativePath, content, force) {
}
-writeWebPagesToFiles = function(type, store, destination, urls, config,
- callback) {
+writeWebPagesToFiles = function(destination, urls, config, callback) {
var options,
userPages = {},
i,
View
6 lib/management/cli.js
@@ -109,7 +109,7 @@ function main() {
}
if (args.length === 0) {
- argInfo = { command: 'help', params: [] };
+ argInfo = { command: 'help', params: [], options: {} };
} else {
argInfo = parseArgs(args, command.options);
}
@@ -122,9 +122,9 @@ function main() {
return;
}
- command.run(argInfo.params, argInfo.options, function(err) {
+ command.run(argInfo.params, argInfo.options, function(err, usg, die) {
if (err) {
- utils.error(err);
+ utils.error(err, usg, die);
} else {
utils.success('mojito done.');
}
Please sign in to comment.
Something went wrong with that request. Please try again.