#NEWLINE# def main( reactor , argv , environ ) : #NEWLINE# #INDENT# eliot_to_stdout ( MESSAGE_FORMATS , ACTION_START_FORMATS ) #NEWLINE# try : #NEWLINE# #INDENT# options = ContainerOptions ( ) #NEWLINE# options . parseOptions ( argv [ 1 : ] ) #NEWLINE# #UNINDENT# except usage . UsageError as e : #NEWLINE# #INDENT# sys . stderr . write ( e . args [ 0 ] ) #NEWLINE# sys . stderr . write ( '\n\n' ) #NEWLINE# sys . stderr . write ( options . getSynopsis ( ) ) #NEWLINE# sys . stderr . write ( '\n' ) #NEWLINE# sys . stderr . write ( options . getUsage ( ) ) #NEWLINE# raise SystemExit ( 1 ) #NEWLINE# #UNINDENT# container_deployment = ClusterContainerDeployment . from_options ( reactor , options ) #NEWLINE# return container_deployment . deploy ( options [ 'apps-per-node' ] )