-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclosed brackets not detected in antsRegistration command line parameters #1707
Comments
Thanks for this report. This would be something I would attempt to fix at the parser level, as I expect it affects other programs as well. |
Just an FYI, if you add So, in the corrected case, with the right delimiter, the relevant option is
vs. uncorrected:
So you can see that the parser is most likely skipping over the bad option value and picking up the next one. I don't have the time right now to prioritize this as it seems a highly infrequent incorrect usage case but I'll keep it in mind if I do get some time. |
Thanks @ntustison I agree this is not high priority. I looked at this some more and there's nothing special happening that prevents terminal output, it's just that if you open a bracket and don't close it, the subsequent commands don't get parsed. If you put the |
Describe the problem
In antsRegistration, if using the -x argument, but missing off the final
]
, the command line will still run so long as no further registration stages follow. Nothing at all is printed to stdout as it runs, even if --verbose is set. It's not clear whether the flags that follow -x are ignored or not.Expected behaviour would be an error message.
To Reproduce
When I've run this I've always provided absolute paths which is not reflected here for brevity:
Note no
]
after g.nii. If another stage follows the -x, then an error is correctly returnedSystem information
ANTs version information
ANTs Version: 2.5.1.post24-g6c29d9d
Compiled: Mar 13 2024 21:10:19
Compiled from source
Additional information
Not the biggest bother but hard to catch as
antsRegistration
commands can get extremely long. I thought you'd like to be aware, but not an issue for me personally now I'm aware of it.Thanks for the great tool.
The text was updated successfully, but these errors were encountered: