@@ -184,7 +184,7 @@ def parse_input_ctds(xsd_location, input_ctds, output_destination, output_file_e
184184
185185
186186def flatten_list_of_lists (args , list_name ):
187- setattr (args , list_name , [item for sub_list in getattr (args , list_name ) for item in sub_list ])
187+ setattr (args , list_name , [item for sub_list in getattr (args , list_name ) for item in sub_list if isinstance ( sub_list , list ) ])
188188
189189
190190def validate_against_schema (ctd_file , schema ):
@@ -197,7 +197,7 @@ def validate_against_schema(ctd_file, schema):
197197
198198def add_common_parameters (parser , version , last_updated ):
199199 parser .add_argument ("FORMAT" , default = None , help = "Output format (mandatory). Can be one of: cwl, galaxy." )
200- parser .add_argument ("-i" , "--input" , dest = "input_files" , default = [], required = True , nargs = "+" , action = "append" ,
200+ parser .add_argument ("-i" , "--input" , dest = "input_files" , required = True , nargs = "+" , action = "append" ,
201201 help = "List of CTD files to convert." )
202202 parser .add_argument ("-o" , "--output-destination" , dest = "output_destination" , required = True ,
203203 help = "If multiple input files are given, then a folder in which all converted "
0 commit comments