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
bf89109525
commit
3b74c2dec0
3 changed files with 23 additions and 22 deletions
15
jrnl/args.py
15
jrnl/args.py
|
@ -17,14 +17,16 @@ from .plugins import EXPORT_FORMATS
|
|||
from .plugins import IMPORT_FORMATS
|
||||
from .plugins import util
|
||||
|
||||
def deserialize_config_args(input: str) -> dict:
|
||||
_kvpairs = input.strip(' ').split(',')
|
||||
runtime_modifications = {}
|
||||
for _p in _kvpairs:
|
||||
l,r = _p.strip().split(':')
|
||||
|
||||
def deserialize_config_args(input: str) -> dict:
|
||||
_kvpairs = input.strip(" ").split(",")
|
||||
runtime_modifications = {}
|
||||
for _p in _kvpairs:
|
||||
l, r = _p.strip().split(":")
|
||||
runtime_modifications[l] = r
|
||||
return runtime_modifications
|
||||
|
||||
|
||||
|
||||
class WrappingFormatter(argparse.RawTextHelpFormatter):
|
||||
"""Used in help screen"""
|
||||
|
||||
|
@ -349,6 +351,5 @@ def parse_args(args=[]):
|
|||
num = re.compile(r"^-(\d+)$")
|
||||
args = [num.sub(r"-n \1", arg) for arg in args]
|
||||
|
||||
|
||||
parsed_args = parser.parse_intermixed_args(args)
|
||||
return parsed_args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue