parser=argparse.ArgumentParser(description='The script builds OpenCV.framework for OSX.')
parser.add_argument('out',metavar='OUTDIR',help='folder to put built framework')
parser.add_argument('--opencv',metavar='DIR',default=folder,help='folder with opencv repository (default is "../.." relative to script location)')
parser.add_argument('--contrib',metavar='DIR',default=None,help='folder with opencv_contrib repository (default is "None" - build only main framework)')