action='store', type='string', dest='email_sender', default='', help= 'The sender for email notifications (overrides configuration file value') # Read command line args. (options, args) = parser.parse_args() # colormap filename. if not options.colormap_filename: parser.error( 'ColorMap filename not provided. --colormap must be specified.') else: if '://' not in options.colormap_filename: colormap_filename = check_abs_path(options.colormap_filename) else: colormap_filename = options.colormap_filename # output VRT. if not options.output_vrt: parser.error('Output filename not provided. --output must be specified.') else: output_vrt = options.output_vrt # merge VRT. merge_vrt = options.merge_vrt # transparent if options.transparent == False: alpha = 255 else: alpha = 0 # Send email.
default=False, help="Send email notification for errors and warnings.") parser.add_option('--email_server', action='store', type='string', dest='email_server', default='', help='The server where email is sent from (overrides configuration file value') parser.add_option('--email_recipient', action='store', type='string', dest='email_recipient', default='', help='The recipient address for email notifications (overrides configuration file value') parser.add_option('--email_sender', action='store', type='string', dest='email_sender', default='', help='The sender for email notifications (overrides configuration file value') # Read command line args. (options, args) = parser.parse_args() # colormap filename. if not options.colormap_filename: parser.error('ColorMap filename not provided. --colormap must be specified.') else: if '://' not in options.colormap_filename: colormap_filename = check_abs_path(options.colormap_filename) else: colormap_filename = options.colormap_filename # output VRT. if not options.output_vrt: parser.error('Output filename not provided. --output must be specified.') else: output_vrt = options.output_vrt # merge VRT. merge_vrt = options.merge_vrt # transparent if options.transparent == False: alpha = 255 else: alpha = 0 # Send email.