Skip to content

ArgumentParser - #1000

Merged
SimonRit merged 4 commits into
RTKConsortium:mainfrom
axel-grc:tar
Sep 16, 2026
Merged

SimonRit merged 4 commits into
RTKConsortium:mainfrom
axel-grc:tar

Conversation

@axel-grc

Copy link
Copy Markdown
Collaborator

No description provided.

Multi-value (nargs="+") options were only comma-split for non-str types
because the neutralization gate skipped str-typed arguments. Passing a
list of paths through the Python API, e.g.
rtk.rtkcheckimagequality(reference=["a.nrrd","b.nrrd"]), serialized as
a single comma token but was never split, yielding one bogus filename
"a.nrrd,b.nrrd".

Neutralize the type of every nargs="+" option, including str/path lists,
then split comma tokens and re-cast each piece (str cast is a no-op).
@SimonRit
SimonRit merged commit 6eaffcc into RTKConsortium:main Sep 16, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants