packages/hyperloop-ios-metabase/src/main.cpp
static std::map<std::string, std::string> argvToMap(int argc, char* argv[]) {
	std::map<std::string, std::string> args;
	size_t i = 1;
	while (i != argc) {
		std::string firstArg(argv[i]);
		if (hyperloop::startsWith(firstArg, '-')) {
			if (i+1 < argc) {
				args[firstArg] = std::string(argv[i+1]);
			} else {
				args[firstArg] = "true";
			}
		}
		++i;
	}
	return args;
}
/**
 * return a std::map from command line args
 */
return a std::map from command line args
return a std :: map from command line args
static std::map<std::string, std::string> argvToMap(int argc, char* argv[]) {
	std::map<std::string, std::string> args;
	size_t i = 1;
	while (i != argc) {
		std::string firstArg(argv[i]);
		if (hyperloop::startsWith(firstArg, '-')) {
			if (i+1 < argc) {
				args[firstArg] = std::string(argv[i+1]);
			} else {
				args[firstArg] = "true";
			}
		}
		++i;
	}
	return args;
}
static std :: map < std :: string , std :: string > argvToMap ( int argc , char * argv [ ] ) { std :: map < std :: string , std :: string > args ; size_t i = 1 ; while ( i != argc ) { std :: string firstArg ( argv [ i ] ) ; if ( hyperloop :: startsWith ( firstArg , ' ' ) ) { if ( i + 1 < argc ) { args [ firstArg ] = std :: string ( argv [ i + 1 ] ) ; } else { args [ firstArg ] = " " ; } } ++ i ; } return args ; }
return a std::map from command line args
return a std :: map from command line args