This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
命令行参数 search
Spedoske edited this page Mar 31, 2020
·
1 revision
参数--search
允许您筛选节点。
当参数string
不为all
时,进行筛选(此时筛选不区分大小写):
若在idc
、localized_idc
、localized_data_center
字段中有任意一个含有string
,则该数据中心会留下。
例如,输入如下命令:
python3 main.py --search 日本 --list
会输出:
服务商 | 节点位置 | 节点编号 |
---|---|---|
Amazon Web Services | 日本 东京都 东京 | 13 |
Google Cloud Platform | 日本 东京都 东京 | 8 |
Google Cloud Platform | 日本 大阪府 大阪 | 9 |
Linode | 日本 东京都 品川区 | 7 |
Vultr | 日本 东京都 东京 | 14 |
允许输入多次--search [string]
,两次筛选的结果会取并集。
例如,输入如下命令:
python3 main.py --search nExusbYtes --search 瑞士 --list
会输出:
服务商 | 节点位置 | 节点编号 |
---|---|---|
Google Cloud Platform | 瑞士 苏黎世州 苏黎世 | 18 |
Nexus Bytes | 美国 新泽西州 皮斯卡特维 | 0 |
Nexus Bytes | 美国 佛罗里达州 迈阿密 | 1 |
Nexus Bytes | 美国 加利福尼亚州 洛杉矶 | 2 |
Nexus Bytes | 德国 巴伐利亚州 纽伦堡 | 3 |
当参数string
为all
时,默认使用所有数据中心作为来源。
这等效于--search
或在命令中不添加--search
。
当您使用--search
时,默认使用所有数据中心作为来源。
这等效于--search all
或在命令中不添加--search
。
当您在命令中不添加参数--search
时,默认使用所有数据中心作为来源。
这等效于--search
或--search all
。
即使您不使用参数--search
,该参数仍会生效。
该参数会滤去所有节点编号不为integer
的数据中心。
例如,输入如下命令:
python3 main.py --list --dataCenterIndex 14
会输出:
服务商 | 节点位置 | 节点编号 |
---|---|---|
Amazon Web Services | 韩国 首尔 | 14 |
Google Cloud Platform | 比利时 瓦隆大区 圣吉斯兰 | 14 |
Vultr | 日本 东京都 东京 | 14 |