BUG: fixes bug due to the flag -l
BUG: fixes bug due to the flag -l

Former-commit-id: 4f3a2f66dec2dff264b6d9a706650f8453029022
Former-commit-id: b1999add30cbc897dc9e62a80bfe0f59669db368
3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox