Commit 3b6220c4 authored by Marc Modat's avatar Marc Modat

patch9 Silly mistake when changing -%v to --pv instead of -pv. Both options...

patch9  Silly mistake when changing -%v to --pv instead of -pv. Both options are now available for compatibility with CLI and nipype
parent 81efdd29
......@@ -244,7 +244,7 @@ int main(int argc, char **argv)
{
alignCentre=0;
}
else if(strcmp(argv[i], "-%v")==0 || strcmp(argv[i], "--pv")==0)
else if(strcmp(argv[i], "-%v")==0 || strcmp(argv[i], "-pv")==0 || strcmp(argv[i], "--pv")==0)
{
float value=atof(argv[++i]);
if(value<0.f || value>100.f){
......@@ -253,7 +253,7 @@ int main(int argc, char **argv)
}
blockPercentage=value;
}
else if(strcmp(argv[i], "-%i")==0 || strcmp(argv[i], "--pi")==0)
else if(strcmp(argv[i], "-%i")==0 || strcmp(argv[i], "-pi")==0 || strcmp(argv[i], "--pi")==0)
{
float value=atof(argv[++i]);
if(value<0.f || value>100.f){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment