mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 13:36:14 +02:00
Fix test arg parsing
This commit is contained in:
parent
bf7ece8208
commit
f1907bd27d
1 changed files with 3 additions and 1 deletions
|
@ -18,7 +18,9 @@ def _parse_args(command):
|
||||||
nargs = []
|
nargs = []
|
||||||
concats = []
|
concats = []
|
||||||
for a in command.split()[1:]:
|
for a in command.split()[1:]:
|
||||||
if a.startswith("'"):
|
if a.startswith("'") and a.endswith("'"):
|
||||||
|
nargs.append(a.strip("'"))
|
||||||
|
elif a.startswith("'"):
|
||||||
concats.append(a.strip("'"))
|
concats.append(a.strip("'"))
|
||||||
elif a.endswith("'"):
|
elif a.endswith("'"):
|
||||||
concats.append(a.strip("'"))
|
concats.append(a.strip("'"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue