a big lump of work to get the command line able to execute commands, and to hack in a trivial cli

This commit is contained in:
Joe Walker 2010-12-08 13:13:33 +00:00
commit 38c9fc7a93
17 changed files with 1715 additions and 379 deletions

View file

@ -161,7 +161,7 @@ exports.getCommandNames = function() {
* @param command Either a command, or the name of one
*/
exports.exec = function(command, args) {
if (typeof name === 'string') {
if (typeof command === 'string') {
command = commands[command];
}
if (!command) {