boostorg / boostorg/program_options
No way to get number of non-unlimited positional arguments
- 主要言語
- C++
- スター
- 136
- フォーク
- 117
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
[Documentation](https://www.boost.org/doc/libs/1_68_0/doc/html/boost/program_options/positiona_1_3_31_9_9_1_1_1.html) 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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
リンクされている positional_options_description のドキュメントから始め、次にクラスの実装と program_options モジュール内の既存のテストを見つけます。max_total_count が無制限の引数をどのように区別しているかを確認します。カウント対象の位置引数の数を公開し、その動作をテストとドキュメントでカバーできれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100