ccflag- 命令行参数解析工具
C/C++ 其他开发相关
共0Star
详细介绍
ccflag 是比 Google GFlags 更简单易用的 C++
命令行参数解析工具,代码简洁,仅一个.h文件与一个.cc文件,比 gflags 更方便。
// parse command line flags from <argc, argv>.
// non-flag elements will be put into the vector, if v != NULL.
void init_ccflag(int argc, char** argv, std::vector<std::string>* v = NULL);
// parse command line flags from a string.
// non-flag elements will be put into the vector, if v != NULL.
// <usage> init_ccflag("-i=23 -s=\"hello world\" -t=hello_world");
void init_ccflag(const std::string& args, std::vector<std::string>* v = NULL);
// parse command line flags from <argc, argv> first, and then from config file.
void init_ccflag(int argc, char** argv, const std::string& config);
-
0 Star
-
0 Star
-
0 Star
-
0 Star
-
0 Star
-
4346 Star
-
0 Star
-
0 Star
-
83 Star
-
290 Star