Parsing parameters to main()

2019-05-03 08:56发布

In C++, is there a well done, complete, open source implementation of a utility to parse the parameters of the main() function?

I wrote my own, and I saw many others around. But I was wandering if there is a better implementation available, which provides all the features expected from the corresponding executable.

3条回答
叼着烟拽天下
2楼-- · 2019-05-03 09:07
劳资没心,怎么记你
3楼-- · 2019-05-03 09:19

Boost provides an open-source implementation with ProgramOptions.

查看更多
Animai°情兽
4楼-- · 2019-05-03 09:27

Take a look at this framework: CmdLine: a C++ option-parsing framework

查看更多
登录 后发表回答