mirror of https://github.com/eyhc1/rendercv.git
cli: fix render command without extra arguments
This commit is contained in:
parent
e9c508085d
commit
2526926b90
|
@ -586,6 +586,7 @@ def cli_command_render(
|
||||||
# double dashed, such as `--cv.sections.education.0.institution`. The following
|
# double dashed, such as `--cv.sections.education.0.institution`. The following
|
||||||
# elements are the corresponding values of the key, such as
|
# elements are the corresponding values of the key, such as
|
||||||
# `"Bogazici University"`. The for loop below parses `ctx.args` accordingly.
|
# `"Bogazici University"`. The for loop below parses `ctx.args` accordingly.
|
||||||
|
if ctx:
|
||||||
for i in range(0, len(ctx.args), 2):
|
for i in range(0, len(ctx.args), 2):
|
||||||
key = ctx.args[i]
|
key = ctx.args[i]
|
||||||
value = ctx.args[i + 1]
|
value = ctx.args[i + 1]
|
||||||
|
|
Loading…
Reference in New Issue