pandoc --help now says something about pdf output.

Closes #720.
This commit is contained in:
John MacFarlane 2013-04-26 21:13:07 -07:00
parent 26fefa040a
commit 4edc97a921

View file

@ -747,9 +747,11 @@ usageMessage :: String -> [OptDescr (Opt -> IO Opt)] -> String
usageMessage programName = usageInfo
(programName ++ " [OPTIONS] [FILES]" ++ "\nInput formats: " ++
(wrapWords 16 78 $ readers'names) ++ "\nOutput formats: " ++
(wrapWords 16 78 $ writers'names) ++ "\nOptions:")
(wrapWords 16 78 $ writers'names) ++
'\n' : replicate 16 ' ' ++
"[*for pdf output, use latex or beamer and -o FILENAME.pdf]\nOptions:")
where
writers'names = sort $ map fst writers
writers'names = sort $ "pdf*" : map fst writers
readers'names = sort $ map fst readers
-- Determine default reader based on source file extensions