#NEWLINE# @ argh_named ( 'report' ) #NEWLINE# @ argh . arg ( '-o' , '--output-file' , metavar = 'FILE' , nargs = '?' , help = 'output file path (default: stdout)' ) #NEWLINE# @ expects_obj #NEWLINE# def handle_report( self , arg ) : #NEWLINE# #INDENT# 'show command execution timeline report' #NEWLINE# out = ( open ( arg . output_file , 'w' ) if self . output_file else sys . stdout ) #NEWLINE# for chunk in self . task_times . iter_report ( ) : #NEWLINE# #INDENT# out . write ( chunk )