#NEWLINE# def runcli( self , * args ) : #NEWLINE# #INDENT# with capture_stdout ( ) as out : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ui . _raw_main ( list ( args ) , u . lib ) #NEWLINE# #UNINDENT# except ui . UserError as u : #NEWLINE# #INDENT# print ( u . args [ 0 ] ) #NEWLINE# #UNINDENT# #UNINDENT# return out . getvalue ( )