diff --git a/README.md b/README.md index 37701681..2224a2f9 100644 --- a/README.md +++ b/README.md @@ -77,9 +77,9 @@ source <(curl -sL https://multi.netlify.app/v2ray.sh) --remove ## 命令行参数 ```bash -v2ray/xray [-h|--help] [options] - -h, --help 查看帮助 - -v, --version 查看版本号 +v2ray/xray [-h|help] [options] + -h, help 查看帮助 + -v, version 查看版本号 start 启动 V2Ray stop 停止 V2Ray restart 重启 V2Ray diff --git a/README_EN.md b/README_EN.md index c86d0395..55b902ae 100644 --- a/README_EN.md +++ b/README_EN.md @@ -59,9 +59,9 @@ source <(curl -sL https://multi.netlify.app/v2ray.sh) --remove ## Command Line ```bash -v2ray/xray [-h|--help] [options] - -h, --help get help - -v, --version get version +v2ray/xray [-h|help] [options] + -h, help get help + -v, version get version start start V2Ray stop stop V2Ray restart restart V2Ray diff --git a/v2ray b/v2ray index 90dd9832..6e68280f 100644 --- a/v2ray +++ b/v2ray @@ -1,6 +1,6 @@ # bash completion for v2ray/xray function _auto_tab() { - local options_array=("start" "stop" "restart" "status" "update" "update.sh" "add" "del" "info" "port" "tls" "tfo" "stream" "iptables" "cdn" "stats" "clean" "log" "new" "rm" "-h" "-v") + local options_array=("start" "stop" "restart" "status" "update" "update.sh" "add" "del" "info" "port" "tls" "tfo" "stream" "iptables" "cdn" "stats" "clean" "log" "new" "rm" "-h" "-v" "help" "version") local add_array=("wechat" "utp" "srtp" "dtls" "wireguard" "socks" "mtproto" "ss" "vless" "vless_ws" "vless_xtls" "trojan" "ss" "quic" "h2" "tcp" "tcp_host" "ws") local log_array=("access" "a" "error" "e") local cur prev diff --git a/v2ray_util/__init__.py b/v2ray_util/__init__.py index bec3d927..f254b1e4 100644 --- a/v2ray_util/__init__.py +++ b/v2ray_util/__init__.py @@ -1,4 +1,4 @@ -__version__ = '3.9.0.1' +__version__ = '3.9.0.2' import sys if "xray" in sys.argv[0]: diff --git a/v2ray_util/main.py b/v2ray_util/main.py index 83b76d37..801dd6a2 100644 --- a/v2ray_util/main.py +++ b/v2ray_util/main.py @@ -16,9 +16,9 @@ def help(): lang = Config().get_data('lang') if lang == 'zh': print(""" -{0} [-h|--help] [options] - -h, --help 查看帮助 - -v, --version 查看版本号 +{0} [-h|help] [options] + -h, help 查看帮助 + -v, version 查看版本号 start 启动 {bin} stop 停止 {bin} restart 重启 {bin} @@ -44,9 +44,9 @@ def help(): """.format(exec_name[exec_name.rfind("/") + 1:], bin=run_type)) else: print(""" -{0} [-h|--help] [options] - -h, --help get help - -v, --version get version +{0} [-h|help] [options] + -h, help get help + -v, version get version start start {bin} stop stop {bin} restart restart {bin} @@ -88,9 +88,9 @@ def parse_arg(): V2ray.stop() elif sys.argv[1] == "restart": V2ray.restart() - elif sys.argv[1] in ("-h", "--help"): + elif sys.argv[1] in ("-h", "help"): help() - elif sys.argv[1] in ("-v", "--version"): + elif sys.argv[1] in ("-v", "version"): V2ray.version() elif sys.argv[1] == "status": V2ray.status()