Skip to content

Commit 35a6171

Browse files
committed
fix CodeFormat CLI to allow reading from stdin
1 parent 9ffcbcb commit 35a6171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeFormat/src/CodeFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ int main(int argc, char** argv)
8484
return -1;
8585
}
8686

87-
if (cmd.HasOption("file"))
87+
if (cmd.HasOption("file") || cmd.HasOption("stdin"))
8888
{
8989
auto luaFormat = std::make_shared<LuaFormat>();
9090
if (cmd.HasOption("file"))

0 commit comments

Comments
 (0)