Add CLI options (#8)

* add cli args --config, --debug and --verbose

load_config() will search for a relevant config file in several dirs

add separate handler methods for mute,unmute and toggle

mapping.toml removed, everything merged into config.toml

* add cli options subsection

* rename event variable to make it clear we're waiting for a stop event (and not some other obs event)

* fix argparse description

* add return None (for type checker)

* fix example in top level docstring

* add shorthand `-c` cli option
This commit is contained in:
2025-01-13 18:00:06 +00:00
committed by GitHub
parent fddb1390ba
commit 8d20af2e2c
7 changed files with 219 additions and 65 deletions

6
.gitignore vendored
View File

@@ -90,6 +90,10 @@ ENV/
env.bak/
venv.bak/
# Pipenv
Pipfile
Pipfile.lock
# Spyder project settings
.spyderproject
.spyproject
@@ -102,3 +106,5 @@ venv.bak/
# mypy
.mypy_cache/
test.toml