summaryrefslogtreecommitdiff
path: root/pandoc.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-12-07 15:46:46 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-12-07 17:37:27 +0100
commitb0733190b06b3684f0994809b17543033c5c00ca (patch)
tree45b92b6c0fe4e4daaca506118ee7cef2a116b7dc /pandoc.hs
parenta197341252a6149bb1a3234ffcca915fb4ed1498 (diff)
Fixed bash completion for filenames with spaces.
Closes #2749.
Diffstat (limited to 'pandoc.hs')
-rw-r--r--pandoc.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/pandoc.hs b/pandoc.hs
index 0c2bcec5d..89681258f 100644
--- a/pandoc.hs
+++ b/pandoc.hs
@@ -478,7 +478,7 @@ options =
case safeRead ("Wrap" ++ uppercaseFirstLetter arg) of
Just o -> return opt { optWrapText = o }
Nothing -> err 77 "--wrap must be auto, none, or preserve")
- "[auto|none|preserve]")
+ "auto|none|preserve")
"" -- "Option for wrapping text in output"
, Option "" ["columns"]
@@ -609,7 +609,7 @@ options =
Just tlDiv -> return opt { optTopLevelDivision = tlDiv }
_ -> err 76 ("Top-level division must be " ++
"section, chapter, part, or default"))
- "[section|chapter|part]")
+ "section|chapter|part")
"" -- "Use top-level division type in LaTeX, ConTeXt, DocBook"
, Option "N" ["number-sections"]
@@ -912,6 +912,7 @@ options =
UTF8.hPutStrLn stdout $ printf tpl allopts
(unwords (map fst readers))
(unwords (map fst writers))
+ (unwords $ map fst highlightingStyles)
ddir
exitSuccess ))
"" -- "Print bash completion script"