-
Notifications
You must be signed in to change notification settings - Fork 287
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
FIX: ensure commandline aliases are respected #2152
Conversation
This comment has been minimized.
This comment has been minimized.
@@ -150,6 +150,7 @@ def _bids_filter(value): | |||
"--nthreads", | |||
"--n_cpus", | |||
"--n-cpus", | |||
dest='nprocs', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is not --nprocs
used as dest
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it'd be nice to have it explicitly said, especially since this changed from 20.0.x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explicitly said
Well, developers know that argparse maps --nprocs
to parsed.nprocs
if it is placed first (which is implicit, but clear in their API). To the user, I don't think this makes any difference. Should we define dest
for all arguments then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if they all had multiple aliases like this one, i tend to side with "yes"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oesteban 👍?
20.1.1 (June 04, 2020) ====================== Bug-fix release in the 20.1.x series. * FIX: FreeSurfer license manipulation & canary (#2165) * FIX: Dismiss ``echo`` entity from SDC reports (#2160) * FIX: Ensure the command-line alias of ``--nprocs`` is respected (#2152) * MAINT: Use legacy pip/setuptools for py2 checking (#2156)
Fixes #2151
There are many aliases for the
nprocs
option, but we were not being consistent with the dest variable.Also fixes an invalid nipype plugin argument (#2153 (comment))