From b3deeb1c192d654ac6daecf20e0fef3b5ad624e7 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 18 Feb 2016 20:01:50 +0530 Subject: [PATCH] move usage to top --- bin/oxtimelines | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/oxtimelines b/bin/oxtimelines index 5850848..1a437f1 100755 --- a/bin/oxtimelines +++ b/bin/oxtimelines @@ -16,7 +16,8 @@ import oxtimelines # fixme: -w option should be 'keyframeswide' mode if __name__ == '__main__': - usage = ''' + usage = '''%prog [options] video1 [video2] + %prog takes one or more video files as input and outputs timeline images. If a cuts path is given, it also outputs a json file containing cuts. If in and out points are given, only that part of the video(s) will be rendered. @@ -31,8 +32,7 @@ widths will be 1 px per frame for the first one, and 1 px per second for the second (smaller) one. If the wide option is set, large 'keyframeswide' tiles will be rendered. They can be used at a later point to render small 'keyframes' tiles without having to decode the video again. - -usage: %prog [options] video1 [video2]''' +''' parser = OptionParser(usage=usage) parser.add_option('-o', '--output', dest='tiles', help='path for combined timeline tiles')