diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-07-12 16:51:30 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-07-12 16:51:30 +0200 |
commit | 050036c036bea4dba65efd033230d552ef637abc (patch) | |
tree | 6bb3646d7816676b9ec6f2bdedd9e4a95f7c954f /src/Text | |
parent | 013fd1c6b68f2c061202d931f541aa4877ae543f (diff) | |
download | pandoc-050036c036bea4dba65efd033230d552ef637abc.tar.gz |
Print informative message when failing with use of `--normalize`.
We may want to think of some kind of graceful fallback, but
the present behavior has the advantage of forcing people to
update scripts when updating to pandoc 2.0.
See #3786.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/App.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index 689c0a784..68bdc1432 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -1564,6 +1564,8 @@ handleUnrecognizedOption :: String -> [String] -> [String] handleUnrecognizedOption "--smart" = (("--smart/-S has been removed. Use +smart or -smart extension instead.\n" ++ "For example: pandoc -f markdown+smart -t markdown-smart.") :) +handleUnrecognizedOption "--normalize" = + ("--normalize has been removed. Normalization is now automatic." :) handleUnrecognizedOption "-S" = handleUnrecognizedOption "--smart" handleUnrecognizedOption "--old-dashes" = ("--old-dashes has been removed. Use +old_dashes extension instead." :) |