boostorg / boostorg/program_options

[Feature] Allow Unknown Options from all sources

オープン
#83 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
136
フォーク
117
PR マージ指標
30日以内にマージされた PR はありません

説明

For the command line parser, there is the [`allow_unregistered()` method](https://www.boost.org/doc/libs/1_70_0/doc/html/program_options/howto.html#id-1.3.32.6.9) to not throw an exception whenever an option is not recognized.

However, this is missing from the configuration file and environment parsers.

It is possible to do work around this for both [configuration files](https://stackoverflow.com/questions/23664503/parsing-unregistered-options-for-config-files-in-boost-program-options) and [environment](https://stackoverflow.com/questions/53285248/boost-program-options-allow-undeclared-from-environment), but I am of the opinion this should be handled in similar fashion to the command line parsers!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

コマンドライン解析における allow_unregistered() の文書化された動作から始め、次に設定ファイルパーサーと環境パーサーが不明なオプションをどのように処理するかを比較します。既存のパーサーがどのように動作すべきかを決める前に、リンクされている設定および環境の回避策を確認してください。完了とは、3つすべてのソースで不明なオプションが例外なく一貫して処理されることを意味します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp
領域
cli
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。