Fix for not working --verbose optional switch
authorRobert Błaut <listy@blaut.biz>
Sat, 29 Mar 2014 08:27:41 +0000 (09:27 +0100)
committerRobert Błaut <listy@blaut.biz>
Sat, 29 Mar 2014 08:27:41 +0000 (09:27 +0100)
librarian/book2anything.py

index 0a8e736..7ae6178 100755 (executable)
@@ -102,11 +102,13 @@ class Book2Anything(object):
                     if flag.value(options)]
         if transform_flags:
             transform_args['flags'] = transform_flags
                     if flag.value(options)]
         if transform_flags:
             transform_args['flags'] = transform_flags
-        # Add cover support, if any.
+        if options.verbose:
+            transform_args['verbose'] = True        
         if options.html_toc and cls.ext == 'epub':
             transform_args['html_toc'] = True
         if options.use_kindlegen and cls.ext == 'mobi':
             transform_args['use_kindlegen'] = True
         if options.html_toc and cls.ext == 'epub':
             transform_args['html_toc'] = True
         if options.use_kindlegen and cls.ext == 'mobi':
             transform_args['use_kindlegen'] = True
+        # Add cover support, if any.
         if cls.uses_cover:
             if options.image_cache:
                 def cover_class(*args, **kwargs):
         if cls.uses_cover:
             if options.image_cache:
                 def cover_class(*args, **kwargs):