clan-config: add readme

Also add capability of reading an option value
This commit is contained in:
DavHau
2023-08-23 00:59:13 +02:00
parent 7b2e9cc46e
commit 999fbe0d89
6 changed files with 154 additions and 51 deletions

View File

@@ -37,7 +37,7 @@ def test_set_some_option(
with tempfile.NamedTemporaryFile() as out_file:
with open(out_file.name, "w") as f:
json.dump({}, f)
monkeypatch.setattr(sys, "argv", ["", "--out-file", out_file.name] + argv)
monkeypatch.setattr(sys, "argv", ["", "--settings-file", out_file.name] + argv)
parser = argparse.ArgumentParser()
config._register_parser(
parser=parser,