@@ -269,7 +269,7 @@ def format_help(cls):
269
269
_outputs_help (cls ) + ['' ] +
270
270
_refs_help (cls )
271
271
)
272
- return allhelp .expandtabs (4 )
272
+ return allhelp .expandtabs (8 )
273
273
274
274
275
275
def _inputs_help (cls ):
@@ -281,27 +281,27 @@ def _inputs_help(cls):
281
281
['Inputs::', '', '\t[Mandatory]', '\tin_file: (an existing file name)', ...
282
282
283
283
"""
284
- helpstr = ['Inputs::' , '' ]
284
+ helpstr = ['Inputs::' ]
285
285
mandatory_keys = []
286
286
optional_items = []
287
287
288
288
if cls .input_spec :
289
289
inputs = cls .input_spec ()
290
290
mandatory_items = list (inputs .traits (mandatory = True ).items ())
291
291
if mandatory_items :
292
- helpstr += ['\t [Mandatory]' ]
293
- for name , spec in sorted ( mandatory_items ) :
292
+ helpstr += ['' , ' \t [Mandatory]' ]
293
+ for name , spec in mandatory_items :
294
294
helpstr += get_trait_desc (inputs , name , spec )
295
295
296
- mandatory_keys = [ item [0 ] for item in mandatory_items ]
296
+ mandatory_keys = { item [0 ] for item in mandatory_items }
297
297
optional_items = ['\n ' .join (get_trait_desc (inputs , name , val ))
298
298
for name , val in inputs .traits (transient = None ).items ()
299
299
if name not in mandatory_keys ]
300
300
if optional_items :
301
- helpstr += ['\t [Optional]' ] + optional_items
301
+ helpstr += ['' , ' \t [Optional]' ] + optional_items
302
302
303
303
if not mandatory_keys and not optional_items :
304
- helpstr += ['\t None' ]
304
+ helpstr += ['' , ' \t None' ]
305
305
return helpstr
306
306
307
307
@@ -319,15 +319,15 @@ def _outputs_help(cls):
319
319
outputs = cls .output_spec ()
320
320
outhelpstr = [
321
321
'\n ' .join (get_trait_desc (outputs , name , spec ))
322
- for name , spec in sorted ( outputs .traits (transient = None ).items () )]
322
+ for name , spec in outputs .traits (transient = None ).items ()]
323
323
if outhelpstr :
324
324
helpstr = helpstr [:- 1 ] + outhelpstr
325
325
return helpstr
326
326
327
327
328
328
def _refs_help (cls ):
329
329
"""Prints interface references."""
330
- references = getattr (cls , '_references ' , None )
330
+ references = getattr (cls , 'references_ ' , None )
331
331
if not references :
332
332
return []
333
333
0 commit comments