@@ -86,7 +86,7 @@ function cli()
86
86
"host-requests" :
87
87
{
88
88
rename : "maxSocketsPerHost" ,
89
- info : "The maximum number of requests per host/port at any given time ." ,
89
+ info : "Concurrent requests limit per host." ,
90
90
type : Number ,
91
91
default : defaultOptions . maxSocketsPerHost
92
92
} ,
@@ -103,6 +103,13 @@ function cli()
103
103
info : "Recursively scan (\"crawl\") the HTML document(s)." ,
104
104
type : Boolean
105
105
} ,
106
+ "requests" :
107
+ {
108
+ rename : "maxSockets" ,
109
+ info : "Concurrent requests limit." ,
110
+ type : Number ,
111
+ default : defaultOptions . maxSockets
112
+ } ,
106
113
"user-agent" :
107
114
{
108
115
info : "The user agent to use for link checks." ,
@@ -159,6 +166,7 @@ cli.prototype.input = function(args, showArgs)
159
166
excludeLinksToSamePage : args . verbose !== true ,
160
167
filterLevel : args . filterLevel ,
161
168
honorRobotExclusions : args . followRobotExclusions !== true ,
169
+ maxSockets : args . maxSockets ,
162
170
maxSocketsPerHost : args . maxSocketsPerHost ,
163
171
requestMethod : args . get !== true ? "head" : "get" ,
164
172
userAgent : args . userAgent
0 commit comments