双线网站选服务器,自适应网站制作教程,营销推广计划,佛山h5模板建站CLI11是一个比较方便的命令行分析工具
源码位于:GitHub - CLIUtils/CLI11: CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.
不需要安装,有两种方式导入:
1.创建目录/usr/include/CLI,然…CLI11是一个比较方便的命令行分析工具
源码位于:GitHub - CLIUtils/CLI11: CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.
不需要安装,有两种方式导入:
1.创建目录/usr/include/CLI,然后将release中的CLI11.hpp拷贝到/usr/include/CLI中
2.将源码中的CLI目录拷贝到/usr/include/目录中
使用时直接引入头文件即可,不需要库文件 #include CLI/CLI.hpp CLI11使用起来比较简单,源码下的example目录下有很多例子可以参考
#include CLI/CLI.hpp
#include iostream
#include stringint main(int argc, char **argv) {CLI::App app("Validator checker");std::string file;app.add_option("-f,--file,file", file,