Skip to content

Commit

Permalink
pandoc --help now says something about pdf output.
Browse files Browse the repository at this point in the history
Closes jgm#720.
  • Loading branch information
jgm committed Apr 27, 2013
1 parent 26fefa0 commit 4edc97a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pandoc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4edc97a

Please sign in to comment.