StarGate01 / AmongUs-Mumble

Mumble VoIP Plugin and mod for the popular game "Among Us" to enable Proximity Voice Chat.
GNU General Public License v3.0
109 stars 13 forks source link

Add config file #7

Closed StarGate01 closed 3 years ago

StarGate01 commented 3 years ago

Overridable by CLI arguments

StarGate01 commented 3 years ago

Use CLI11 for this

alisenai commented 3 years ago

Possibly a YAML-like config - simple key : value storage.

Also "#" comments? Would be nice to add descriptions built-in to the config.

StarGate01 commented 3 years ago

The library we already use for command line parsing, CLI11, also supports reading config files in TOML or INI format. The library internally manages the merging of cli arguments and config file entries.

See: https://github.com/CLIUtils/CLI11/blob/master/README.md#configuration-file

alisenai commented 3 years ago

I see, it does both. That's the way to go then.

Great reference as well.

StarGate01 commented 3 years ago

By default, the file config.ini is loaded if it exists. The current configuration is printed at game start. Command line arguments take precedence over the config file.