mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-02 06:56:12 +02:00
make format
This commit is contained in:
parent
983c9c8c4b
commit
528ce1efe2
5 changed files with 48 additions and 44 deletions
11
jrnl/args.py
11
jrnl/args.py
|
@ -4,7 +4,6 @@
|
|||
import argparse
|
||||
import re
|
||||
import textwrap
|
||||
import json
|
||||
|
||||
from .commands import postconfig_decrypt
|
||||
from .commands import postconfig_encrypt
|
||||
|
@ -24,11 +23,11 @@ def deserialize_config_args(input: str) -> dict:
|
|||
for _p in _kvpairs:
|
||||
l, r = _p.strip().split(":")
|
||||
r = r.strip()
|
||||
if r.isdigit():
|
||||
r = int(r)
|
||||
elif r.lower() == "true":
|
||||
r = True
|
||||
elif r.lower() == "false":
|
||||
if r.isdigit():
|
||||
r = int(r)
|
||||
elif r.lower() == "true":
|
||||
r = True
|
||||
elif r.lower() == "false":
|
||||
r = False
|
||||
runtime_modifications[l] = r
|
||||
return runtime_modifications
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue