不能用 -h 作为 --host 简写,因为和 -h --help 冲突
This commit is contained in:
parent
75c4f1c6a3
commit
a74b5e3ad2
@ -5,7 +5,7 @@ const Config = require('so.sysconfig')({
|
|||||||
commanderOptions: [
|
commanderOptions: [
|
||||||
// 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述],后两者用于传给commander,取值后覆盖掉Config里的同名变量。
|
// 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述],后两者用于传给commander,取值后覆盖掉Config里的同名变量。
|
||||||
['protocol', '-P, --protocol <string>', 'Web Server protocol: http|https|httpall.'],
|
['protocol', '-P, --protocol <string>', 'Web Server protocol: http|https|httpall.'],
|
||||||
['host', '-h, --host <string>', 'Host IP or domain name, default to localhost.'],
|
['host', '-H, --host <string>', 'Host IP or domain name, default to localhost.'],
|
||||||
|
|
||||||
['port', '-p, --port <number>', 'HTTP port number.'],
|
['port', '-p, --port <number>', 'HTTP port number.'],
|
||||||
['from', '-f, --from <string>', 'Seed list such as \'["http://ip_or_dn:port"]\' or "noseed" to disable seeding.'],
|
['from', '-f, --from <string>', 'Seed list such as \'["http://ip_or_dn:port"]\' or "noseed" to disable seeding.'],
|
||||||
|
Loading…
Reference in New Issue
Block a user