mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 19:54:13 +08:00
Emergent fix for --version
This commit is contained in:
parent
6579e52f0b
commit
a59265a6f0
@ -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: " : "未识别的命令行选项 ";
|
||||
|
Loading…
x
Reference in New Issue
Block a user