#NEWLINE# def main( ) : #NEWLINE# #INDENT# usage = 'usage: %prog /path/to/dir /path/to/destination.idml' #NEWLINE# version = '%prog 0.1' #NEWLINE# parser = OptionParser ( usage = usage , version = version , description = __doc__ ) #NEWLINE# ( options , args ) = parser . parse_args ( ) #NEWLINE# if ( len ( args ) != 2 ) : #NEWLINE# #INDENT# parser . error ( "You must provide 2 parameters to the script ('/path/to/dir' and '/path/to/destination.idml')" ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# create_idml_package_from_dir ( args [ 0 ] , args [ 1 ] )