Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

命令行参数 search

Spedoske edited this page Mar 31, 2020 · 1 revision

参数--search

参数--search允许您筛选节点。

使用--search [string]

当参数string不为all时,进行筛选(此时筛选不区分大小写):

若在idclocalized_idclocalized_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

当参数stringall时,默认使用所有数据中心作为来源。

这等效于--search或在命令中不添加--search

使用--search

当您使用--search时,默认使用所有数据中心作为来源。

这等效于--search all或在命令中不添加--search

命令中无参数--search

当您在命令中不添加参数--search时,默认使用所有数据中心作为来源。

这等效于--search--search all

--search相关的参数

参数--dataCenterIndex [integer]

即使您不使用参数--search,该参数仍会生效。

该参数会滤去所有节点编号不为integer的数据中心。

例如,输入如下命令:

python3 main.py --list --dataCenterIndex 14

会输出:

服务商 节点位置 节点编号
Amazon Web Services 韩国 首尔 14
Google Cloud Platform 比利时 瓦隆大区 圣吉斯兰 14
Vultr 日本 东京都 东京 14