diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main.cpp b/src/main.cpp index 0a54d52..6a5fa7c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,18 +8,18 @@ int main(int argc, char *argv[]) { - if (argc != 2) { - std::cout << "Usage: " << argv[0] << " <config file>" << std::endl; - } else { - // Check if file exists - std::ifstream f(argv[1]); - if (!f) { - std::cerr << "The config file does not exist." << std::endl; - exit(1); - } - else - f.close(); - } + //if (argc != 2) { + // std::cout << "Usage: " << argv[0] << " <config file>" << std::endl; + //} else { + // // Check if file exists + // std::ifstream f(argv[1]); + // if (!f) { + // std::cerr << "The config file does not exist." << std::endl; + // exit(1); + // } + // else + // f.close(); + //} QApplication a(argc, argv); Widget w; |