From e9ffb9f594658c3032c3c52506820f928e3c87ba Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 6 Mar 2012 18:36:50 +0100 Subject: [PATCH] make oxdb_poster and padma_poster args more alike --- scripts/padma_poster | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/padma_poster b/scripts/padma_poster index 8c35d647..c8a9138d 100755 --- a/scripts/padma_poster +++ b/scripts/padma_poster @@ -59,6 +59,7 @@ def render_poster(id, title, frame, timeline, poster): def main(): parser = OptionParser() + parser.add_option('-o', '--oxdbid', dest='oxdb_id', help='0xDB Id') parser.add_option('-i', '--id', dest='id', help='Pad.ma Id') parser.add_option('-t', '--title', dest='title', help='Title', default='') parser.add_option('-d', '--director', dest='director', help='Director', default='') @@ -67,6 +68,8 @@ def main(): parser.add_option('-l', '--timeline', dest='timeline', help='Timeline (image file to be read)') parser.add_option('-p', '--poster', dest='poster', help='Poster (image file to be written)') (options, args) = parser.parse_args() + if options.oxdb_id and not options.id: + options.id = options.oxdb_id if None in (options.id, options.poster): parser.print_help() sys.exit()