best C++ command line argument parser [duplicate]

久未见 提交于 2019-12-30 05:25:05

问题


Possible Duplicates:
What parameter parser libraries are there for C++?
C++ Parse Command Line Arguments

What is the best C++ command line argument parser that you can suggest?


回答1:


Try Boost::Program Options. It allows you to read and parse command lines as well as config files.




回答2:


I like C's getopt(), but then I'm old. :-)




回答3:


Google's gflags




回答4:


Boost program_options.



来源:https://stackoverflow.com/questions/1436549/best-c-command-line-argument-parser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!