Skip to content

Commit a7cd1eb

Browse files
committed
Hotfix version number reprinting on every loop
1 parent d01722f commit a7cd1eb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ int main(int argc, char* argv[]) {
1515
const std::wstring outFileName = L"\\output";
1616
bool running = true;
1717

18+
if (argc <= 1) {
19+
std::cout << "json2x " << VERSION_MAJOR << "." << VERSION_MINOR << " (shell mode) " << "\n";
20+
}
21+
1822
while (running)
1923
{
2024
try
@@ -37,9 +41,6 @@ int main(int argc, char* argv[]) {
3741
argc = 0; //Prevent args being used again
3842
}
3943
else {
40-
41-
std::cout << "json2x " << VERSION_MAJOR << "." << VERSION_MINOR << " (shell mode) " << "\n";
42-
4344
std::cout << ">> ";
4445

4546
std::string tempInput;

0 commit comments

Comments
 (0)