mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 17:00:46 +00:00
Reformatted file
This commit is contained in:
@@ -2,14 +2,17 @@ from ptulsconv.commands import convert
|
|||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = OptionParser()
|
parser = OptionParser()
|
||||||
parser.usage = "ptulsconv TEXT_EXPORT.txt"
|
parser.usage = "ptulsconv TEXT_EXPORT.txt"
|
||||||
parser.add_option('-i', dest='in_time', help="Don't output events occurring before this timecode, and offset"
|
parser.add_option('-i', dest='in_time', help="Don't output events occurring before this timecode, and offset"
|
||||||
" all events relative to this timecode.", metavar='TC')
|
" all events relative to this timecode.", metavar='TC')
|
||||||
parser.add_option('-o', dest='out_time', help="Don't output events occurring after this timecode.", metavar='TC')
|
parser.add_option('-o', dest='out_time', help="Don't output events occurring after this timecode.", metavar='TC')
|
||||||
parser.add_option('-P','--progress', default=False, action='store_true', dest='show_progress', help='Show progress bar.')
|
parser.add_option('-P', '--progress', default=False, action='store_true', dest='show_progress',
|
||||||
parser.add_option('-m','--include-muted', default=False, action='store_true', dest='include_muted', help='Read muted clips.')
|
help='Show progress bar.')
|
||||||
|
parser.add_option('-m', '--include-muted', default=False, action='store_true', dest='include_muted',
|
||||||
|
help='Read muted clips.')
|
||||||
|
|
||||||
(options, args) = parser.parse_args(sys.argv)
|
(options, args) = parser.parse_args(sys.argv)
|
||||||
if len(args) < 2:
|
if len(args) < 2:
|
||||||
@@ -23,4 +26,3 @@ def main():
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user