mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
implement runtime override
This commit is contained in:
parent
554d25ae17
commit
5fe6caf805
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ def run(args):
|
||||||
# Apply config overrides
|
# Apply config overrides
|
||||||
overrides = args.config_override
|
overrides = args.config_override
|
||||||
#TODO: substitute overriden KV pairs in config dict ONLY AFTER ADDING TESTS
|
#TODO: substitute overriden KV pairs in config dict ONLY AFTER ADDING TESTS
|
||||||
|
for k in overrides:
|
||||||
|
logging.debug("Overriding %s from %s to %s"%(k,config[k],overrides[k]))
|
||||||
|
config[k] = overrides[k]
|
||||||
# --- All the standalone commands are now done --- #
|
# --- All the standalone commands are now done --- #
|
||||||
|
|
||||||
# Get the journal we're going to be working with
|
# Get the journal we're going to be working with
|
||||||
|
|
Loading…
Add table
Reference in a new issue