Skip to content

Commit

Permalink
🐛(ozi-new interactive): fix arg passing using chain
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Jun 30, 2024
1 parent 3b28bf2 commit 3afe7ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ozi/new/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import re
import sys
from functools import lru_cache
from itertools import chain
from typing import TYPE_CHECKING
from typing import Any
from typing import Sequence
Expand Down Expand Up @@ -988,8 +989,7 @@ def menu_loop(
output.setdefault(f'--{x}', [])
classifier = classifier_checkboxlist(x)
if classifier:
for i in classifier:
output[f'--{x}'].append(i)
output[f'--{x}'] += classifier
prefix.update(
(
{
Expand Down Expand Up @@ -1236,4 +1236,4 @@ def interactive_prompt(project: Namespace) -> list[str]: # noqa: C901 # pragma
if len(i) > 0:
ret_args += [k, i]

return ret_args
return list(chain.from_iterable(ret_args))

0 comments on commit 3afe7ba

Please sign in to comment.