Skip to content

Commit

Permalink
option parser fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fjakobs committed Jan 3, 2011
1 parent 29dd262 commit 69d684e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/cloud9/optparse.js
Expand Up @@ -39,8 +39,12 @@ var Parser = module.exports = function(options) {
}

this.parseArguments = function(argv) {
argv = argv.concat();
var arg, key, opt, opts = {}, opts_def = {};
while (argv.length && (arg = argv.shift())) {
while (argv.length && argv.length) {
arg = argv.shift();
if (!arg)
continue;
opt = this.$getArg(argv, arg);
opts[opt.key] = opt.value;
}
Expand Down

0 comments on commit 69d684e

Please sign in to comment.