Empirical
Namespaces | Functions
command_line.h File Reference
#include <string>
#include "../base/vector.h"

Go to the source code of this file.

Namespaces

 emp
 If we are in emscripten, make sure to include the header.
 
 emp::cl
 

Functions

emp::vector< std::string > emp::cl::args_to_strings (int argc, char *argv[])
 
int emp::cl::find_arg (const emp::vector< std::string > &args, const std::string &pattern)
 
bool emp::cl::has_arg (const emp::vector< std::string > &args, const std::string &pattern)
 
bool emp::cl::use_flag (emp::vector< std::string > &args, const std::string &pattern)
 
int emp::cl::get_arg_value (emp::vector< std::string > &args, const std::string &pattern, std::string &var)
 
int emp::cl::get_arg_value (emp::vector< std::string > &args, const std::string &pattern, std::string &var1, std::string &var2)
 
int emp::cl::get_arg_value (emp::vector< std::string > &args, const std::string &pattern, int &var)
 
int emp::cl::get_arg_value (emp::vector< std::string > &args, const std::string &pattern, double &var)
 
template<typename... Ts>
int emp::cl::use_arg_value (emp::vector< std::string > &args, const std::string &pattern, Ts &...vars)