选项解析器C / C ++? [英] Option Parsers for C/C++?

查看:102
本文介绍了选项解析器C / C ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

我做了一些看,有很多库命令行选项解析,但很难区分它们。任何人都有任何经验吗?是一个更难/更好/更快/更容易/任何比其他任何?

I've done some looking and there are a whole lot of libraries for command line option parsing, but it is difficult to differentiate between them. Does anyone have any experience with any of them? Is one harder/better/faster/easier/whatever than any of the others? Or should I just grow my own?

推荐答案

如果你想要一个完全跨平台的东西,我发现了 Boost :: Program_Options 库非常好。有一些学习曲线设置它,但一旦你掌握了,它简化了很大的事情。

If you want something completely cross-platform, I've found the Boost::Program_Options library to be very good. There's something of a learning curve to setting it up, but once you master that, it simplifies things greatly.

这篇关于选项解析器C / C ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆