Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Greyh4t
Copy link
Contributor

@Greyh4t Greyh4t commented May 5, 2022

参照常见的软件help信息显示逻辑,更新了一下,目前默认不显示程序路径和版本信息,如果需要显示,自己构造about信息就可以

没有设置about信息

.\cloptest.exe --help
Usage:
    D:\cloptest\cloptest.exe [Options]

Options:
    -V,--version    print version information
    -h,--help       print the help information

设置了about信息

.\cloptest.exe --help
演示SetVersion的demo

Usage:
    D:\cloptest\cloptest.exe [Options]

Options:
    -V,--version    print version information
    -h,--help       print the help information

resolved #88

@guonaihong
Copy link
Owner

我先合并, 然后多测测, 再打上tag.

@guonaihong guonaihong merged commit 40a5ca8 into guonaihong:master May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

如何实现--version的功能

2 participants