Improvements to `CliArgs`

オープン
#344 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@PhilipFackler がすでに取り組んでいます。

2026年5月6日 から。

評価

この issue はまだ評価されていません。

説明

enhancement
Summary

My initial implementation of CliArgs was enough to used in the example application, but there are some improvements that should ideally be made (see #341). Here I list my ideas that I did not yet implement.

Description
  • Use std::any instead of string for ArgValue representation. Check against specified type when setting the value. Might be better to use std::variant and limit possible input types.
  • Allow for positional arguments (.name = {"pos"})
  • Handle equal sign: --opt=arg (currently flag and value must be space-separated)

Other ideas

  • Introduce an operator T function in ArgValue and ArgVector to allow implicit conversion
主要言語
C++
スター
27
フォーク
11
平均マージ
2日 21時間
マージ済み PR(30日)
15

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ORNL/GridKit のほかの issue

ORNL/GridKit の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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