@cli.command(context_settings=CONTEXT_SETTINGS)
@click.argument('crashfile', type=ExistingFilePath, callback=check_not_none)
@click.option('-r', '--rerun', is_flag=True, flag_value=True, help='Rerun crashed node.')
@click.option('-d', '--debug', is_flag=True, flag_value=True, help='Enable Python debugger when re-executing.')
@click.option('-i', '--ipydebug', is_flag=True, flag_value=True, help='Enable IPython debugger when re-executing.')
@click.option('-w', '--dir', type=ExistingDirPath, help='Directory where to run the node in.')
def crash(crashfile, rerun, debug, ipydebug, dir):
 from .crash_files import display_crash_file
 debug = ('ipython' if ipydebug else debug)
 if (debug == 'ipython'):
  import sys
  from IPython.core import ultratb
  sys.excepthook = ultratb.FormattedTB(mode='Verbose', color_scheme='Linux', call_pdb=1)
 display_crash_file(crashfile, rerun, debug, dir)

@ cli . command ( context_settings = CONTEXT_SETTINGS ) @ click . argument ( 'crashfile' , type = ExistingFilePath , callback = check_not_none ) @ click . option ( '-r' , '--rerun' , is_flag = True , flag_value = True , help = 'Rerun crashed node.' ) @ click . option ( '-d' , '--debug' , is_flag = True , flag_value = True , help = 'Enable Python debugger when re-executing.' ) @ click . option ( '-i' , '--ipydebug' , is_flag = True , flag_value = True , help = 'Enable IPython debugger when re-executing.' ) @ click . option ( '-w' , '--dir' , type = ExistingDirPath , help = 'Directory where to run the node in.' ) def crash ( crashfile , rerun , debug , ipydebug , dir ) : from . crash_files import display_crash_file debug = ( 'ipython' if ipydebug else debug ) if ( debug == 'ipython' ) : import sys from IPython . core import ultratb sys . excepthook = ultratb . FormattedTB ( mode = 'Verbose' , color_scheme = 'Linux' , call_pdb = 1 ) display_crash_file ( crashfile , rerun , debug , dir )
display nipype crash files .