@@ -107,7 +107,6 @@ data Opt = Opt
107107 , optHTMLMathMethod :: HTMLMathMethod -- ^ Method to print HTML math
108108 , optReferenceODT :: Maybe FilePath -- ^ Path of reference.odt
109109 , optEPUBStylesheet :: Maybe String -- ^ EPUB stylesheet
110− , optEPUBCoverImage :: Maybe FilePath -- ^ Path of epub cover image
111110 , optEPUBMetadata :: String -- ^ EPUB metadata
112111 , optDumpArgs :: Bool -- ^ Output command-line arguments
113112 , optIgnoreArgs :: Bool -- ^ Ignore command-line arguments
@@ -152,7 +151,6 @@ defaultOpts = Opt
152151 , optHTMLMathMethod = PlainMath
153152 , optReferenceODT = Nothing
154153 , optEPUBStylesheet = Nothing
155− , optEPUBCoverImage = Nothing
156154 , optEPUBMetadata = ""
157155 , optDumpArgs = False
158156 , optIgnoreArgs = False
@@ -495,7 +493,8 @@ options =
495493 , Option "" ["epub-cover-image"]
496494 (ReqArg
497495 (\arg opt ->
498− return opt { optEPUBCoverImage = Just arg })
496+ return opt { optVariables =
497+ ("epub-cover-image", arg) : optVariables opt })
499498 "FILENAME")
500499 "" -- "Path of epub cover image"
501500
@@ -683,7 +682,6 @@ main = do
683682 , optHTMLMathMethod = mathMethod
684683 , optReferenceODT = referenceODT
685684 , optEPUBStylesheet = epubStylesheet
686− , optEPUBCoverImage = epubCoverImage
687685 , optEPUBMetadata = epubMetadata
688686 , optDumpArgs = dumpArgs
689687 , optIgnoreArgs = ignoreArgs
@@ -868,7 +866,7 @@ main = do
868866
869867 case lookup writerName' writers of
870868 Nothing | writerName' == "epub" ->
871− writeEPUB epubCoverImage epubStylesheet writerOptions doc2
869+ writeEPUB epubStylesheet writerOptions doc2
872870 >>= B.writeFile (encodeString outputFile)
873871 Nothing | writerName' == "odt" ->
874872 writeODT referenceODT writerOptions doc2