C ++有什么参数解析器库? [英] What parameter parser libraries are there for C++?

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

问题描述

我想以下列方式传递参数给我的C ++程式:

  ./ myprog --setting =值

有没有任何库可以帮助我轻松做到这一点?



另请参见 C和Unix的参数解析助手<

Boost.Program_options


I'd like to pass parameters to my C++ program in the following manner:

./myprog --setting=value

Are there any libraries which will help me to do this easily?

See also Argument-parsing helpers for C and Unix

解决方案

Boost.Program_options

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

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