解析参数到main() [英] Parsing parameters to main()

查看:151
本文介绍了解析参数到main()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C ++中,是否有一个完整的,完整的,开源实现的实用程序来解析main()函数的参数?

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.

推荐答案

$ b

  • getopt

  • boost程序选项

  • Poco OptionSet / OptionProcessor

    • getopt
    • boost program options
    • Poco OptionSet/OptionProcessor
    • 这篇关于解析参数到main()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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