ccflag命令行参数解析工具
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);
评论
Go GetoptGo 解析命令行参数工具
GoGetOpt,让你在go里解析命令行参数无聊地跟写shell脚本一样。为了不引起混淆,以下说明将使用gogetopt表示本代码仓库shellgetopt、getopt命令表示util-linux中
Go GetoptGo 解析命令行参数工具
0
SimpleOpt命令行参数解析包
SimpleOpt是一个C语言的开发包,用来解析命令行参数。示例代码:enum{OPT_HELP,OPT_FOO,OPT_BAR,OPT_HOGE};CSimpleOpt::SOptiong_rgOp
SimpleOpt命令行参数解析包
0