// // Created by versustune on 22.02.20. // #ifndef ELIYA_ARGUMENTS_H #define ELIYA_ARGUMENTS_H #include #include class Arguments { private: std::unordered_map parsedArgs; int count = 0; std::vector args; public: Arguments(int argc, std::vector args); ~Arguments(); //pureRead args with this format: --key=args or --debug if "--" not defined it's says failed and skip it.. so make sure it's provided void parseArgs(); std::string getArg(const std::string &key); std::string getArgOrDefault(const std::string &key, std::string fallback); const std::unordered_map &getParsedArgs(); protected: }; #endif //ELIYA_ARGUMENTS_H