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:
+5
-2
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user