forked from Green-Sky/tomato
skip command in args
This commit is contained in:
parent
d7e658eba6
commit
95eb0eb26d
@ -15,7 +15,7 @@
|
||||
#include <fstream>
|
||||
|
||||
StartScreen::StartScreen(const std::vector<std::string_view>& 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";
|
||||
|
Loading…
Reference in New Issue
Block a user