c++ - boost::program_options 中的短参数没有长

标签 c++ boost-program-options

是否可以仅使用短选项指定带有 boost::program_options 的参数? 给出的答案here是使用allow_long_disguise,这将导致使用单个破折号可以接受长选项。有没有什么方法可以使某些选项只显示短字符(单破折号和单个字符)而不使用 allow_long_disguise

最佳答案

不,图书馆不支持这个。

关于c++ - boost::program_options 中的短参数没有长,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30960550/

相关文章:

c++ - 在程序选项中添加键值对

c++ - 将 boost::posix_time::ptime 转换为 NTP 时间戳

c++ - 如何正确返回 unique_ptr 的集合

c++ - 在 uint64_t 位掩码中高效加载/计算/打包 64 个双重比较结果

c++ - 带有 boost boost::program_options 和 options_description 的 RAII

c++ - Boost 程序选项允许输入值集

c++ - 具体参数输入

c++ - 为什么map在(switch)格外变成空的?

c++ - boost::program_options 验证每个参数而不是每个参数类型?

c++ - 如何手动将选项插入 boost.Program_options?