mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
automatically add 'highlight' to config after upgrade from earlier version #16
This commit is contained in:
parent
f2e207de85
commit
6a23b54c36
1 changed files with 4 additions and 0 deletions
4
jrnl.py
4
jrnl.py
|
@ -357,6 +357,10 @@ if __name__ == "__main__":
|
|||
else:
|
||||
with open(CONFIG_PATH) as f:
|
||||
config = json.load(f)
|
||||
if not 'highlight' in config:
|
||||
config['highlight'] = False
|
||||
with open(CONFIG_PATH, 'w') as f:
|
||||
json.dump(config, f, indent=2)
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
composing = parser.add_argument_group('Composing', 'Will make an entry out of whatever follows as arguments')
|
||||
|
|
Loading…
Add table
Reference in a new issue