diff --git a/main.cpp b/main.cpp index d13f19d..9483515 100644 --- a/main.cpp +++ b/main.cpp @@ -276,7 +276,7 @@ int main(int argc, char *argv[]) { cout << "gta5view Command Line" << endl << endl; cout << "Usage: " << args.at(0).toStdString().c_str() << " source target -format -mode" << endl; - if (args.at(1) == "--help") + if (args.length() >= 1 && args.at(1) == "--help") { cout << "Convert-only: (auto file name at convert)" << endl; cout << "Convert-only: (auto file extension at convert)" << endl;