boostorg / boostorg/program_options
canonical_name option for error_with_option_name is giving NULL string
- 主要言語
- C++
- スター
- 136
- フォーク
- 117
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
The error is "option is ambiguous and matches 'parent_run' and 'parent_hierarchy' " instead it should be "option '-parent' is ambiguous and matches '-parent_run' and '-parent_hierarchy' " Here since -parent is canonical name and it set to NULL string , it is giving the first error message. I have checked the canonical name using get_canonical_name function.
Below is the code snippet.
catch(boost::program_options::error& e){
std::cout<
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、示されている program_options catch で曖昧性エラーを再現し、報告で言及されている get_canonical_name 関数を追跡します。canonical name が NULL 文字列になるか確認し、その後、完全な動作に '-parent' と一致する両方のオプション名がエラーメッセージに含まれることを検証します。payload にはソースファイルもテストパスも記載されていません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100