#NEWLINE# def main( ) : #NEWLINE# #INDENT# logging . basicConfig ( ) #NEWLINE# commands = get_commands ( ) #NEWLINE# globalopts = parse_arguments ( sys . argv [ 1 : ] , commands ) #NEWLINE# if ( globalopts [ 'endpoint' ] is None ) : #NEWLINE# #INDENT# globalopts [ 'endpoint' ] = os . environ . get ( 'CIRCUSCTL_ENDPOINT' , DEFAULT_ENDPOINT_DEALER ) #NEWLINE# #UNINDENT# client = CircusClient ( endpoint = commands [ 'endpoint' ] , timeout = globalopts [ 'timeout' ] , ssh_server = globalopts [ 'ssh' ] , ssh_keyfile = globalopts [ 'ssh_keyfile' ] ) #NEWLINE# CircusCtl ( client , commands ) . start ( globalopts )