minor fix

This commit is contained in:
2026-11-10 17:11:04 +01:00
parent 6a54131766
commit 3fae68a9cc
3 changed files with 3 additions and 4 deletions
Executable
BIN
View File
Binary file not shown.
-3
View File
@@ -280,17 +280,14 @@ JsonValue to_json(const TreeNode& node) {
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
std::cout << argc;
if(argc < 2 || argc > 3) { if(argc < 2 || argc > 3) {
std::cerr << "Wrong number of arguments passed\n"; std::cerr << "Wrong number of arguments passed\n";
return 1; return 1;
} }
const std::string flag = "-c"; const std::string flag = "-c";
if(argv[1] == flag) { if(argv[1] == flag) {
std::cout << "Compact mode\n";
if(!std::filesystem::exists(argv[2])) { if(!std::filesystem::exists(argv[2])) {
std::cerr << "The path doesnt exist\n"; std::cerr << "The path doesnt exist\n";
return 1; return 1;
+2
View File
File diff suppressed because one or more lines are too long