diff options
| author | John MacFarlane <[email protected]> | 2025-07-13 12:33:12 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-07-13 12:33:32 -0700 |
| commit | 2cf9b55421d7026dac8c45730b8538f13e4bbb78 (patch) | |
| tree | c943119f7c90f5168ba71fb88eb7070d214ee51b /pandoc-cli | |
| parent | 2e3cb483e9d2367b0fbd308e33c33cbb9995fc64 (diff) | |
Export `copyrightMessage` from Text.Pandoc.App module.
Export `copyrightMessage` from the unexported module
Text.Pandoc.App.CommandLineOptions
and reexport from Text.Pandoc.App [API change].
This avoids the need for a duplicated version in pandoc-cli, which can
now depend on the library's exported version.
Diffstat (limited to 'pandoc-cli')
| -rw-r--r-- | pandoc-cli/src/pandoc.hs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/pandoc-cli/src/pandoc.hs b/pandoc-cli/src/pandoc.hs index 9e82d02bc..dd172696a 100644 --- a/pandoc-cli/src/pandoc.hs +++ b/pandoc-cli/src/pandoc.hs @@ -16,7 +16,7 @@ module Main where import qualified Control.Exception as E import System.Environment (getArgs, getProgName) import Text.Pandoc.App ( convertWithOpts, defaultOpts, options - , parseOptionsFromArgs, handleOptInfo ) + , parseOptionsFromArgs, handleOptInfo, copyrightMessage ) import Text.Pandoc.Error (handleError) import System.Exit (exitSuccess) import Data.Monoid (Any(..)) @@ -67,13 +67,6 @@ main = E.handle (handleError . Left) $ do Left e -> handleOptInfo engine e Right opts -> convertWithOpts engine opts -copyrightMessage :: String -copyrightMessage = - "Copyright (C) 2006-2024 John MacFarlane. Web: https://pandoc.org\n" - ++ - "This is free software; see the source for copying conditions. There is no\n" - ++ - "warranty, not even for merchantability or fitness for a particular purpose." flagSettings :: String flagSettings = "Features: " ++ |
