Skip to content

Commit

Permalink
modifying value for entry point to allow -arg or --arg (#515)
Browse files Browse the repository at this point in the history
* modifying value for entry point to allow -arg or --arg

* fixing a style

---------

Co-authored-by: Jakub Kaczmarzyk <[email protected]>
  • Loading branch information
djarecka and kaczmarj authored Apr 3, 2023
1 parent f39cffb commit f2f42e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions neurodocker/cli/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,10 @@ def _get_instruction_for_param(
elif param.name == "entrypoint":
if not isinstance(value, tuple):
raise ValueError("expected this value to be a tuple (contact developers)")
value = list(value) # convert from tuple to list
d = {"name": param.name, "kwds": {"args": value}}
value_spl = []
for el in value:
value_spl += el.split()
d = {"name": param.name, "kwds": {"args": value_spl}}
# install
elif param.name == "install":
opts = None
Expand Down

0 comments on commit f2f42e1

Please sign in to comment.