No way to get number of non-unlimited positional arguments

未关闭
#63 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp
领域
cli

调研方向

先阅读链接的 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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

boostorg/program_options 的其他 Issue

查看 boostorg/program_options 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。