#NEWLINE# def __init__( self , args , operating_system ) : #NEWLINE# #INDENT# 'Create an instance of the controller passing in the debug flag,\n        the options and arguments from the cli parser.\n\n        :param argparse.Namespace args: Command line arguments\n        :param str operating_system: Operating system name from helper.platform\n\n        ' #NEWLINE# self . set_state ( self . STATE_INITIALIZING ) #NEWLINE# self . args = args #NEWLINE# self . debug = args . foreground #NEWLINE# try : #NEWLINE# #INDENT# self . config = config . Config ( args . config ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# sys . exit ( 1 ) #NEWLINE# #UNINDENT# self . logging_config = config . LoggingConfig ( self . config . logging , self . debug ) #NEWLINE# self . operating_system = operating_system