This commit is contained in:
bobwen-dev 2021-01-25 16:25:06 +08:00
parent 70923486fa
commit bd0dd862c0
2 changed files with 5 additions and 5 deletions

View File

@ -63,7 +63,7 @@ print_usage = (options) ->
items = orderBy items, (v) -> v.alias ? v.key
console.log """
#{info.name} #{info.version}, #{info.description}
Usage: #{info.name} [options...] urls...
Usage: #{info.name} [options...] URLs...
Options
"""
@ -92,7 +92,7 @@ print_examples = (exam = []) ->
Change default protocol to 'http'
#{info.name} -s -p http www.pool.ntp.org
Mix http url and https url
Mix http and https URLs
#{info.name} -s http://www.pool.ntp.org https://www.openssl.org
Access through a http proxy
@ -117,7 +117,7 @@ module.exports = (opt, exam) ->
console.log()
if argv.help
process.exit 0
console.error "\nError: Missing server url, at least one url should be specified"
console.error "\nError: Missing server URL, at least one URL should be specified"
process.exit 0
if argv.count < 1
argv.count = 1

View File

@ -20,7 +20,7 @@ argv = require('./argv') {
type: 'boolean'
}
protocol: {
describe: 'Use this protocol when no protocol is specified in the url'
describe: 'Use this protocol when no protocol is specified in the URL'
alias: 'p'
default: 'https'
type: 'string'
@ -32,7 +32,7 @@ argv = require('./argv') {
type: 'string'
}
count: {
describe: 'The number of requests for each url'
describe: 'The number of requests for each URL'
alias: 'c'
default: 4
type: 'number'