CLIと設定用クラスの接続

CLIと設定用クラスの接続#

利用イメージ#

// グローバルオプション
haniwers --config config.toml daq
haniwers --config config.toml scan

// サブコマンドのオプション
haniwers daq --config config_daq.toml
haniwers scan --config config_scan.toml
  • Typerを使うことで、この両方のケースに対応する