From 95eb0eb26d1184b56e17fe5425b9f7ac73a158b3 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Fri, 31 May 2024 15:34:44 +0200 Subject: [PATCH] skip command in args --- src/start_screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/start_screen.cpp b/src/start_screen.cpp index 020dcb00..b4f125a4 100644 --- a/src/start_screen.cpp +++ b/src/start_screen.cpp @@ -15,7 +15,7 @@ #include StartScreen::StartScreen(const std::vector& args, SDL_Renderer* renderer, Theme& theme) : _renderer(renderer), _theme(theme) { - for (size_t ai = 0; ai < args.size(); ai++) { + for (size_t ai = 1; ai < args.size(); ai++) { if (args.at(ai) == "--config" || args.at(ai) == "-c") { if (args.size() == ai+1) { std::cerr << "TOMATO error: argument '" << args.at(ai) << "' missing parameter!\n";