diff options
| author | Albert Krewinkel <[email protected]> | 2022-09-30 18:41:51 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2022-09-30 18:41:51 +0200 |
| commit | cfc2024d37944bdefa805d5c18a2ab0c3d620bbe (patch) | |
| tree | 437f40469520355fadbde794f7d0846ce76bc4f6 | |
| parent | 1663dfc850662d3d73b89a0b28576a026cce491b (diff) | |
Use `server` as command to start the pandoc server
| -rw-r--r-- | MANUAL.txt | 2 | ||||
| -rw-r--r-- | pandoc-cli/src/pandoc.hs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/MANUAL.txt b/MANUAL.txt index 358fbaad4..37569befa 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -7082,7 +7082,7 @@ metadata field (see [EPUB Metadata], above). # Running pandoc as a web server If you rename (or symlink) the pandoc executable to -`pandoc-server`, or if you call pandoc with `serve` as the first +`pandoc-server`, or if you call pandoc with `server` as the first argument, it will start up a web server with a JSON API. This server exposes most of the conversion functionality of pandoc. For full documentation, see the [pandoc-server] man page. diff --git a/pandoc-cli/src/pandoc.hs b/pandoc-cli/src/pandoc.hs index 1b95d898e..77bd869d3 100644 --- a/pandoc-cli/src/pandoc.hs +++ b/pandoc-cli/src/pandoc.hs @@ -32,7 +32,7 @@ main = E.handle (handleError . Left) $ do _ -> case rawArgs of "lua" : args -> runLuaInterpreter "pandoc lua" args - "serve" : args -> runServer args + "server": args -> runServer args _ -> do engine <- getEngine let cliOpts = options engine |
