Skip to content

Commit

Permalink
Added the -m, --max op for setting max concurrent requests at the com…
Browse files Browse the repository at this point in the history
…mand line
  • Loading branch information
chriso committed Mar 9, 2011
1 parent 9f4c4a8 commit ce04444
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/node.io/interfaces/cli.js
Expand Up @@ -25,6 +25,7 @@ var usage = ''
+ ' -u, --unpack <PASS> Unpack a job using the specified password\n'
+ ' -d, --daemon Daemonize the process (requires daemon.node)\n'
+ ' --spoof Spoof request headers\n'
+ ' -m, --max Set the maximum concurrent requests\n'
+ ' -b, --benchmark Benchmark the operation\n'
+ ' -g, --debug Debug the operation\n'
+ ' -v, --version Display the current version\n'
Expand All @@ -40,7 +41,6 @@ var usage = ''
* @api public
*/
exports.cli = function (args, exit) {

exit = exit || function (msg, is_error) {
utils.status[is_error ? 'error' : 'info'](msg);
process.exit(1);
Expand Down Expand Up @@ -83,6 +83,9 @@ exports.cli = function (args, exit) {
case '--spoof':
options.spoof = true;
break;
case '-m':
case '--max':
options.max = args.shift();
case '-t':
case '--timeout':
options.global_timeout = args.shift();
Expand Down

0 comments on commit ce04444

Please sign in to comment.