<s> """<STR_LIT>""" <EOL> USAGE = """<STR_LIT>""" <EOL> import sys <EOL> if '<STR_LIT>' not in sys . modules and __name__ == '<STR_LIT:__main__>' : <EOL> import pythonpathsetter <EOL> from robotide . lib . robot . conf import RebotSettings <EOL> from robotide . lib . robot . errors import DataError <EOL> from robotide . lib . robot . reporting import ResultWriter <EOL> from robotide . lib . robot . output import LOGGER <EOL> from robotide . lib . robot . utils import Application <EOL> from robotide . lib . robot . run import RobotFramework <EOL> class Rebot ( RobotFramework ) : <EOL> def __init__ ( self ) : <EOL> Application . __init__ ( self , USAGE , arg_limits = ( <NUM_LIT:1> , ) , <EOL> env_options = '<STR_LIT>' , logger = LOGGER ) <EOL> def main ( self , datasources , ** options ) : <EOL> settings = RebotSettings ( options ) <EOL> LOGGER . register_console_logger ( ** settings . console_output_config ) <EOL> LOGGER . disable_message_cache ( ) <EOL> rc = ResultWriter ( * datasources ) . write_results ( settings ) <EOL> if rc < <NUM_LIT:0> : <EOL> raise DataError ( '<STR_LIT>' ) <EOL> return rc <EOL> def rebot_cli ( arguments ) : <EOL> """<STR_LIT>""" <EOL> Rebot ( ) . execute_cli ( arguments ) <EOL> def rebot ( * datasources , ** options ) : <EOL> """<STR_LIT>""" <EOL> return Rebot ( ) . execute ( * datasources , ** options ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> rebot_cli ( sys . argv [ <NUM_LIT:1> : ] ) </s>
