Emergent fix for --version

This commit is contained in:
Aoran Zeng 2024-08-23 16:03:14 +08:00
parent 6579e52f0b
commit a59265a6f0
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -607,6 +607,12 @@ main (int argc, char const *argv[])
{
command = "help"; /* 交到下方处理 */
}
else if (xy_streql (argv[i], "-v")
|| xy_streql (command, "-version")
|| xy_streql (command, "--version"))
{
command = "version"; /* 交到下方处理 */
}
else
{
char *msg = CliOpt_InEnglish ? "Unknown option: " : "未识别的命令行选项 ";