Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Nov 20, 2022
1 parent c4e7149 commit 2867823
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sla2pdf/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def parse_args():
"--params", "-p",
nargs = "+",
default = [],
help = "A sequence of Scribus key=value PDF saving paramters (see the Scribus Scripter docs). Values can be interpreted as integers, booleans or strings.",
help = "A sequence of Scribus key=value PDF saving paramters (see the Scribus Scripter docs).",
)

if argcomplete is not None:
Expand All @@ -70,9 +70,7 @@ def _parse_params(params_list):
value = bool(value.lower().capitalize())
elif value.lower() == "none":
value = None
elif value.isalnum():
pass
else:
elif not value.isalnum():
value = ast.literal_eval(value)

params_dict[key] = value
Expand Down

0 comments on commit 2867823

Please sign in to comment.