Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Commit

Permalink
add timeout option
Browse files Browse the repository at this point in the history
  • Loading branch information
timaschew committed Oct 27, 2014
1 parent 7a9ce14 commit 34a0139
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/component-install
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ program
.usage('[name ...]')
.option('-d, --dev', 'install development dependencies')
.option('-p, --proxy', 'use a proxy, eg. http://localhost:3128')
.option('-t, --timeout <in ms>', 'use a timeout for remotes, default: 5000ms', 5000)
.option('--debug', 'turn on debug statements')
// .option('-p, --proxy <proxy>', 'use a proxy, eg. http://localhost:3128')
.parse(process.argv);
Expand Down Expand Up @@ -70,6 +71,7 @@ process.on('exit', function(){
var options = {
development: program.dev,
proxy: program.proxy,
timeout: program.timeout,
install: true,
verbose: true,
};
Expand Down

0 comments on commit 34a0139

Please sign in to comment.