fix: Ensure quiet is a flag on the cli

We regressed quiet into requiring a value to be set as a cli option
(`--quiet=true`) instead of just functioning as a flag (`--quiet`). This
change restores the previous interface on the command line,
and adds a test to ensure no regressions.
This commit is contained in:
Marty Oehme 2025-11-29 11:18:48 +01:00
parent e50fc9444a
commit 1ea149c1de
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 23 additions and 2 deletions

View file

@ -29,6 +29,17 @@ class TestCli:
"notes_annot": "HERENOTE",
}
def test_cli_notes_quiet_is_flag(self, monkeypatch):
monkeypatch.setattr(
"sys.argv",
[
"topen",
"123",
"--quiet",
],
)
assert parse_cli()["notes_quiet"] is True
def test_cli_parses_paths(self, monkeypatch):
monkeypatch.setattr(
"sys.argv",