cli: fix render command without extra arguments

This commit is contained in:
Sina Atalay 2024-04-30 20:17:09 +03:00
parent e9c508085d
commit 2526926b90
1 changed files with 17 additions and 16 deletions

View File

@ -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]