best C++ command line argument parser [duplicate]

2019-02-11 01:36发布

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?

4条回答
Fickle 薄情
2楼-- · 2019-02-11 02:15

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

查看更多
淡お忘
3楼-- · 2019-02-11 02:28
Anthone
4楼-- · 2019-02-11 02:29

Google's gflags

查看更多
Summer. ? 凉城
5楼-- · 2019-02-11 02:32

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

查看更多
登录 后发表回答