@@ -101,6 +101,10 @@ def export(self, outfile=None):
101
101
# Treat doc for multiline writting
102
102
if self .doc :
103
103
cwl_tool ['doc' ] = literal (self .doc )
104
+
105
+ # Add Arguments
106
+ cwl_tool ['arguments' ] = [in_arg .get_dict () for in_arg in self .arguments ]
107
+
104
108
# Add Inputs
105
109
cwl_tool ['inputs' ] = {}
106
110
for in_param in self .inputs :
@@ -128,7 +132,7 @@ def export(self, outfile=None):
128
132
129
133
if requirements :
130
134
cwl_tool ['requirements' ] = requirements
131
-
135
+
132
136
# Write CWL file in YAML
133
137
if outfile is None :
134
138
six .print_ (CWL_SHEBANG , "\n " , sep = '' )
@@ -293,8 +297,8 @@ class CommandLineBinding(object):
293
297
Describes how the handle an input or an argument.
294
298
'''
295
299
296
- def __init__ (self , load_contents = False , position = None , prefix = None , separate = False ,
297
- item_separator = None , value_from = None , shell_quote = False ):
300
+ def __init__ (self , load_contents = False , position = None , prefix = None , separate = True ,
301
+ item_separator = None , value_from = None , shell_quote = True ):
298
302
'''
299
303
:param load_contents: Read up to the fist 64 KiB of text from the file and
300
304
place it in the "contents" field of the file object
@@ -327,7 +331,7 @@ def get_dict(self):
327
331
:return: dictionnary of the object
328
332
:rtype: DICT
329
333
'''
330
- dict_binding = {k : v for k , v in vars (self ).items () if v is not None and v is not False }
334
+ dict_binding = {k : v for k , v in vars (self ).items () if v is not None }
331
335
return dict_binding
332
336
333
337
@@ -427,7 +431,7 @@ def __init__(self, docker_pull=None, docker_load=None, docker_file=None,
427
431
428
432
def _to_dict (self ):
429
433
"""
430
- Add this requirement to a dictionary description of a
434
+ Add this requirement to a dictionary description of a
431
435
tool generated in an export method.
432
436
433
437
"""
0 commit comments