1
0
mirror of https://github.com/ciromattia/kcc synced 2026-07-04 03:55:28 +00:00

Add basic support for converting more >1 file

This commit is contained in:
blue
2014-10-28 16:45:22 +00:00
parent b174534c1c
commit eaa387a9d6
+5 -2
View File
@@ -57,10 +57,13 @@ def main(argv=None):
parser = makeParser() parser = makeParser()
options, args = parser.parse_args(argv) options, args = parser.parse_args(argv)
checkOptions() checkOptions()
if len(args) != 1: if len(args) < 1:
parser.print_help() parser.print_help()
return return
outputPath = makeBook(args[0]) for source in args:
if len(args) > 1:
print('\nWorking on {}...'.format(source))
outputPath = makeBook(source)
return outputPath return outputPath