skip command in args
Some checks failed
ContinuousDelivery / windows (push) Waiting to run
ContinuousDelivery / windows-asan (push) Waiting to run
ContinuousDelivery / release (push) Blocked by required conditions
ContinuousIntegration / macos (push) Waiting to run
ContinuousIntegration / windows (push) Waiting to run
ContinuousIntegration / linux (push) Successful in 4m12s
ContinuousDelivery / linux-ubuntu (push) Failing after 4m55s
ContinuousIntegration / android (push) Successful in 5m49s
Some checks failed
ContinuousDelivery / windows (push) Waiting to run
ContinuousDelivery / windows-asan (push) Waiting to run
ContinuousDelivery / release (push) Blocked by required conditions
ContinuousIntegration / macos (push) Waiting to run
ContinuousIntegration / windows (push) Waiting to run
ContinuousIntegration / linux (push) Successful in 4m12s
ContinuousDelivery / linux-ubuntu (push) Failing after 4m55s
ContinuousIntegration / android (push) Successful in 5m49s
This commit is contained in:
parent
d7e658eba6
commit
95eb0eb26d
@ -15,7 +15,7 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
StartScreen::StartScreen(const std::vector<std::string_view>& args, SDL_Renderer* renderer, Theme& theme) : _renderer(renderer), _theme(theme) {
|
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.at(ai) == "--config" || args.at(ai) == "-c") {
|
||||||
if (args.size() == ai+1) {
|
if (args.size() == ai+1) {
|
||||||
std::cerr << "TOMATO error: argument '" << args.at(ai) << "' missing parameter!\n";
|
std::cerr << "TOMATO error: argument '" << args.at(ai) << "' missing parameter!\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user