No way to get number of non-unlimited positional arguments
还没有人认领这个 Issue。
评估
调研方向
先阅读链接的 positional_options_description 文档,然后在 program_options 模块中找到类的实现及其现有测试。检查 max_total_count 如何区分无限参数。完成标准是公开已计数的位置参数数量,并通过测试和文档覆盖该行为。
由索引模型根据 Issue 内容生成。
描述
Documentation for positional_options_description says it has a max_total_count function that returns the number of positional arguments, and may return numeric_limits::max to indicate unlimited arguments. However, there is no way to determine the number of counted arguments.
Given an instance of positional_options_description, it is therefore impossible, for example, to print out a list of all positional arguments, stopping at the last, unlimited argument. A new member function that provides this is all you'd need to add, IMO.
- 主要语言
- C++
- 星标
- 136
- 派生
- 117
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
boostorg/program_options 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
boostorg/program_options#147 ·
-
难度 5/5 一周以上 新手友好度 30/100
boostorg/program_options#146 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
boostorg/program_options#144 ·
-
难度 3/5 1-2 天 新手友好度 45/100
boostorg/program_options#142 ·
-
难度 3/5 1-2 天 新手友好度 30/100
boostorg/program_options#139 ·
查看 boostorg/program_options 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
AXERA-TECH/ax-llm#77 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
games-on-whales/wolf#509 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 74/100
-
bug-unconfirmed
难度 2/5 1-3 小时 新手友好度 76/100