6 int main(
int argc,
char **argv)
25 signal_error(
"The amount of arguments exceed the required.\n",
true);
30 if (!std::filesystem::exists(file_path))
34 if (file_path.extension() !=
".csv")
36 signal_error(
"The provided file's extension is not CSV related.");
41 std::string data_load_type = argv[
type_arg];
46 catch (
const std::exception &exc)
int main(int argc, char **argv)
void signal_error(const char *msg, bool usage=false)
constexpr const char * check_usage
constexpr const char * help_msg
void load_from_csv(std::string data, std::filesystem::path file_path, std::uint64_t max_loaded_size)
constexpr const char * help_cstr_long
constexpr std::uint8_t type_arg
constexpr std::uint8_t help_arg
constexpr std::uint8_t file_path_arg
constexpr std::uint8_t min_args_allowed
constexpr const char * help_cstr_short
constexpr std::uint8_t max_loaded_size_arg
constexpr std::uint8_t max_args_allowed