File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 30
30
from .resolver import tool_resolver , ga4gh_tool_registries
31
31
from .stdfsaccess import StdFsAccess
32
32
from .mutation import MutationManager
33
- from .update import ALLUPDATES
33
+ from .update import UPDATES , ALLUPDATES
34
34
35
35
_logger = logging .getLogger ("cwltool" )
36
36
@@ -579,9 +579,12 @@ def versionstring():
579
579
else :
580
580
return u"%s %s" % (sys .argv [0 ], "unknown version" )
581
581
582
- def supportedCWLversions ():
583
- # type: () -> List[Text]
584
- versions = ALLUPDATES .keys ()
582
+ def supportedCWLversions (enable_dev ):
583
+ # type: (bool) -> List[Text]
584
+ if enable_dev :
585
+ versions = ALLUPDATES .keys ()
586
+ else :
587
+ versions = UPDATES .keys ()
585
588
versions .sort ()
586
589
return versions
587
590
@@ -660,7 +663,7 @@ def main(argsl=None, # type: List[str]
660
663
_logger .info (versionfunc ())
661
664
662
665
if args .print_supported_versions :
663
- print ("\n " .join (supportedCWLversions ()))
666
+ print ("\n " .join (supportedCWLversions (args . enable_dev )))
664
667
return 0
665
668
666
669
if not args .workflow :
You can’t perform that action at this time.
0 commit comments