dEngine
Simple 2D C++ game engine
CLIArg.h
Go to the documentation of this file.
1 //
2 // Created by ernes on 7/3/2023.
3 //
4 
5 #ifndef PACKER_UTIL_CLIARG_H
6 #define PACKER_UTIL_CLIARG_H
7 
8 #include <algorithm>
9 #include <string>
10 
11 namespace packer {
15  class CLIArg {
16  public:
17  CLIArg();
18 
25  int GetIndexOfArgument(char *argv[], std::string argument);
26 
33  bool ArgumentExists(char *argv[], std::string argument);
34  };
35 }
36 
37 #endif //PACKER_UTIL_CLIARG_H
int GetIndexOfArgument(char *argv[], std::string argument)
Gets the position of a specific argument in argv.
Definition: CLIArg.cpp:11
CLIArg()
Definition: CLIArg.cpp:9
Namespace consisting of the packer utility.
Definition: CLIArg.h:11
bool ArgumentExists(char *argv[], std::string argument)
Checks if an argument exists in argv.
Definition: CLIArg.cpp:17
Helper class to assist in dealing with CLI arguments.
Definition: CLIArg.h:15