oxtimeline/oximage/list_icon.py
2010-09-17 16:40:10 +02:00

18 lines
592 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
import sys
from optparse import OptionParser
from imagetools import render_list_icon
def main():
parser = OptionParser()
parser.add_option('-f', '--frames', dest='frames', help='Poster frames (image files to be read)')
parser.add_option('-i', '--icon', dest='icon', help='Icon (image file to be written)')
(options, args) = parser.parse_args()
if options['icon'] == None:
parser.print_help()
sys.exit()
options['frames'].replace(', ', ',').split(',')
render_list_icon(options)