From 8cb90f6af7f69d7ec66f11062b04e4ec3c48afaf Mon Sep 17 00:00:00 2001 From: Martin Craig <martin.craig@eng.ox.ac.uk> Date: Mon, 20 Apr 2020 14:08:18 +0100 Subject: [PATCH] Add short options which should be treated as switches. Previously only the long versions of options were correctly flagged as booleans, but the -b and -B options do not have long alternatives so they need to be supported too. And for familiarity to command line users we should support other single-char switches too --- fsl/wrappers/fast.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fsl/wrappers/fast.py b/fsl/wrappers/fast.py index 5dbe2a412..b3e45499c 100644 --- a/fsl/wrappers/fast.py +++ b/fsl/wrappers/fast.py @@ -35,9 +35,16 @@ def fast(imgs, out='fast', **kwargs): valmap = { 'nobias' : wutils.SHOW_IF_TRUE, + 'N' : wutils.SHOW_IF_TRUE, 'verbose' : wutils.SHOW_IF_TRUE, + 'v' : wutils.SHOW_IF_TRUE, 'Prior' : wutils.SHOW_IF_TRUE, + 'P' : wutils.SHOW_IF_TRUE, 'segments' : wutils.SHOW_IF_TRUE, + 'g' : wutils.SHOW_IF_TRUE, + 'b' : wutils.SHOW_IF_TRUE, + 'B' : wutils.SHOW_IF_TRUE, + 'p' : wutils.SHOW_IF_TRUE, } argmap = { -- GitLab