[ARVADOS] updated: b97c921a3bc9ce6186a80dd4157c6132321e6374

git at public.curoverse.com git at public.curoverse.com
Tue Jul 21 11:13:21 EDT 2015


Summary of changes:
 sdk/cwl/arvados_cwl/__init__.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

       via  b97c921a3bc9ce6186a80dd4157c6132321e6374 (commit)
      from  cdfd69a42adf6ed017a443773eccfd8f021fea32 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit b97c921a3bc9ce6186a80dd4157c6132321e6374
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Tue Jul 21 11:13:51 2015 -0400

    6264: Use mutually exclusive group for enable/disable-reuse.

diff --git a/sdk/cwl/arvados_cwl/__init__.py b/sdk/cwl/arvados_cwl/__init__.py
index 052ace9..4df6788 100644
--- a/sdk/cwl/arvados_cwl/__init__.py
+++ b/sdk/cwl/arvados_cwl/__init__.py
@@ -285,10 +285,11 @@ def main(args, stdout, stderr, api_client=None):
     runner = ArvCwlRunner(api_client=arvados.api('v1'))
     args.append("--leave-outputs")
     parser = cwltool.main.arg_parser()
-    parser.add_argument("--enable-reuse", action="store_true",
+    exgroup = parser.add_mutually_exclusive_group()
+    exgroup.add_argument("--enable-reuse", action="store_true",
                         default=False, dest="enable_reuse",
                         help="")
-    parser.add_argument("--disable-reuse", action="store_false",
+    exgroup.add_argument("--disable-reuse", action="store_false",
                         default=False, dest="enable_reuse",
                         help="")
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list