getopt:简单的命令行选项处理程序(C ++ 11)

时间:2021-04-28 16:25:24
【文件属性】:
文件名称:getopt:简单的命令行选项处理程序(C ++ 11)
文件大小:4KB
文件格式:ZIP
更新时间:2021-04-28 16:25:24
C++ getopt 简单的命令行选项处理程序(C ++ 11)。 特征 方便,每个选项一行。 微型,跨平台,自包含,仅标头。 ZLIB / libPNG许可。 展示柜 #> cat sample.cc # include < iostream> # include < string> # include " getopt.hpp " int main () { // - No initialization required: (argc, argv) pair automatically retrieved. // - First argument is default option value, then all option indentifiers follow. bool help = getarg ( false , " -h " , " --help " ,
【文件预览】:
getopt-master
----demo.cc(48B)
----.travis.yml(383B)
----README.md(1KB)
----getopt.cpp(22B)
----getopt.hpp(10KB)

网友评论