Skip to content

Commit 49a73fb

Browse files
committed
修复命令行工具-o选项无效的bug
1 parent 7da601c commit 49a73fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeFormat/src/CodeFormat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ int main(int argc, char** argv)
8383
return -1;
8484
}
8585

86-
if (cmd.HasOption("output"))
86+
if (cmd.HasOption("outfile"))
8787
{
88-
luaFormat->SetOutputFile(cmd.Get<std::string>("output"));
88+
luaFormat->SetOutputFile(cmd.Get<std::string>("outfile"));
8989
}
9090

9191
if (cmd.Get<bool>("detect-config"))

0 commit comments

Comments
 (0)