mcpinger/cli_parser.h

21 lines
392 B
C
Raw Normal View History

2024-05-08 13:27:23 +02:00
//cli_parser.h
2024-05-08 10:24:32 +02:00
#ifndef MCPINGER_CLI_PARSER_H
#define MCPINGER_CLI_PARSER_H
#include <string>
struct config {
std::string hostname;
std::string virtualHostname;
int port = 25565;
int virtualPort = 25565;
int protocolVersion = -1;
int nextState = 1;
2024-05-08 13:27:23 +02:00
void parseCommandLine(int argc, char *argv[]);
static void printHelp();
2024-05-08 10:24:32 +02:00
};
#endif // MCPINGER_CLI_PARSER_H