We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acde1d3 commit 8fa05abCopy full SHA for 8fa05ab
1 file changed
CodeFormat/src/CodeFormat.cpp
@@ -67,7 +67,7 @@ int main(int argc, char** argv)
67
}
68
else
69
{
70
- std::cerr << "not special input file"<<std::endl;
+ std::cerr << "not special input file" << std::endl;
71
return -1;
72
73
@@ -88,9 +88,14 @@ int main(int argc, char** argv)
88
89
90
options = std::make_shared<LuaCodeStyleOptions>();
91
+ if (!cmd.GetKeyValueOptions().empty())
92
+ {
93
+ LuaEditorConfig::ParseFromSection(options, cmd.GetKeyValueOptions());
94
+ }
95
96
- if (!cmd.HasOption("outfile")) {
97
+ if (!cmd.HasOption("outfile"))
98
99
options->end_of_line = "\n";
100
101
0 commit comments