v2ray-core icon indicating copy to clipboard operation
v2ray-core copied to clipboard

v2ray 获取帮助信息的参数不统一

Open unknowndevQwQ opened this issue 3 years ago • 3 comments

你正在使用哪个版本的 V2Ray?

v2ray 5.1.0

你的使用场景是什么?

包括但不限于 v2ray -hv2ray --helpv2ray --versionv2ray verify helpv2ray verify --helpv2ray convert helpv2ray convert --help

你看到的异常现象是什么?

v2ray --helpv2ray -h 输出 Usage of v2ray:\n

v2ray --versionv2ray -v 输出:

flag provided but not defined: -v
Usage of v2ray:

v2ray verify help 输出 empty signature path. v2ray verify --help 输出:

usage: v2ray verify [--sig=sig-file] file
Run 'v2ray help verify' for details.

v2ray convert help输出:failed to merge: infra/conf/mergers: tried all mergers but failed for: help v2ray convert --help输出:

usage: v2ray convert [c1.json] [<url>.json] [dir1] ...
Run 'v2ray help convert' for details.

你期待看到的正常表现是怎样的?

-h/--help 行为与 help 一致 -v/--version 行为与 version 一致

在其他子命令的参数中含有 -h/--help/help 建议输出比较简短的帮助信息

unknowndevQwQ avatar Oct 04 '22 09:10 unknowndevQwQ

You should use v2ray help <subcommand> to get help details.

AkinoKaede avatar Oct 05 '22 01:10 AkinoKaede

You should use v2ray help <subcommand> to get help details.

如果只想看简略信息的话?

unknowndevQwQ avatar Oct 05 '22 09:10 unknowndevQwQ

I hope v2ray can print the basic help message like


Usage:

        v2ray <command> [arguments]

The commands are:

        run           run V2Ray with config
        api           call V2Ray API
        convert       convert config files
        test          test config files
        tls           TLS tools
        uuid          generate new UUID
        verify        verify if a binary is officially signed
        version       print V2Ray version

Use "v2ray help <command>" for more information about a command.

Additional help topics:

        config-merge  config merge logic
        format-loader config formats and loading

Use "v2ray help <topic>" for more information about that topic.

when I type something wrong such as -h or -v or -version or what ever starts with -

instead of an empty usage message

flag provided but not defined: -v
Usage of v2ray:

heimoshuiyu avatar Oct 20 '22 06:10 heimoshuiyu

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Feb 18 '23 02:02 github-actions[bot]

push :)

heimoshuiyu avatar Feb 18 '23 06:02 heimoshuiyu

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Jun 20 '23 01:06 github-actions[bot]

@AkinoKaede 5.7.0 也没有修,这个问题不应该在现在被关闭

unknowndevQwQ avatar Jul 11 '23 15:07 unknowndevQwQ

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Nov 10 '23 01:11 github-actions[bot]

5.10.1 仍未修复

unknowndevQwQ avatar Nov 10 '23 11:11 unknowndevQwQ

才注意到 PR 被关闭了... 重新开了一个

heimoshuiyu avatar Nov 16 '23 02:11 heimoshuiyu

fixed in #2761, close

unknowndevQwQ avatar Dec 14 '23 01:12 unknowndevQwQ