epilog+='Stitch (-a stitch) 1 arcsec dems (-s 1) in the bounding region 31 33 -114 -112 using the url (-u) and the log in credentials provided (-n,-w).\n'
epilog+='Create a rsc metadata file (-m) and report the download results (-r)\n'
parser.add_argument('-a','--action',type=str,default='stitch',dest='action',help='Possible actions: stitch or download (default: %(default)s). ')
parser.add_argument('-c','--correct',action='store_true',dest='correct',help='Apply correction EGM96 -> WGS84 (default: %(default)s). The output metadata is in xml format only')
parser.add_argument('-m','--meta',type=str,default='xml',dest='meta',help='What type of metadata file is created. Possible values: \
xmlorrsc(default:%(default)s)')
parser.add_argument('-s','--source',type=int,default=1,dest='source',help='Dem SRTM source. Possible values 1 or 3 (default: %(default)s)')
parser.add_argument('-f','--filling',action='store_true',dest='filling',help='Flag to instruct to fill missing Dems with null values \
parser.add_argument('-p','--pairs',type=int,default=None,nargs='+',dest='pairs',help='Set of latitude and longitude pairs for which --action = download is performed.\
parser.add_argument('-k','--keep',action='store_true',dest='keep',help='If the option is present then the single files used for stitching are kept. If -l or --local is specified than the flag is automatically set (default: %(default)s)')
parser.add_argument('-r','--report',action='store_true',dest='report',help='If the option is present then failed and succeeded downloads are printed (default: %(default)s)')
parser.add_argument('-l','--local',action='store_true',dest='local',help='If the option is present then use the files that are in the location \
parser.add_argument('-d','--dir',type=str,dest='dir',default='./',help='If used in conjunction with --local it specifies the location where the DEMs are located \
parser.add_argument('-o','--output',type=str,dest='output',default=None,help='Name of the output file to be created in --dir. If not provided the system generates one based on the bbox extremes')
parser.add_argument('-n','--uname',type=str,dest='uname',default=None,help='User name if using a server that requires authentication')
parser.add_argument('-w','--password',type=str,dest='password',default=None,help='Password if using a server that requires authentication')