pandoc-lua: support more command line flags

This commit is contained in:
Albert Krewinkel
2022-09-26 19:50:39 +02:00
parent 62f0e9ffd9
commit de0e3ff5f6
3 changed files with 18 additions and 4 deletions
+16 -2
View File
@@ -21,6 +21,12 @@ If no script argument is given, then the script is assumed to be
passed in via *stdin*. Interactive mode is not supported at this
time.
When called without the option `-E`, the interpreter checks for an
environment variable `LUA_INIT` before running any argument. If
the variable content has the format *`@filename`*, then
`pandoc-lua` executes the file. Otherwise, `pandoc-lua` executes
the string itself.
# OPTIONS
`-e stat`
@@ -34,8 +40,16 @@ time.
`-v`
: Show version information.
`-i`, `-E`, `-W`
: Not supported yet; print a warning to that effect.
`-i`
: Not supported yet; print a warning to that effect.
`-E`
: Ignore environment variables. This is not fully implemented
yet and only ignores the `LUA_INIT` variable. Other variables
like `LUA_PATH` and `LUA_CPATH` are **not** ignored.
`-W`
: Turn warnings on.
# AUTHORS
+1 -1
View File
@@ -58,7 +58,7 @@ executable pandoc
main-is: pandoc.hs
buildable: True
build-depends: pandoc,
hslua-cli >= 1.0 && < 1.1
hslua-cli >= 1.1 && < 1.2
if flag(server)
build-depends: pandoc-server >= 0.1 && < 0.2,
wai-extra >= 3.0.24,
+1 -1
View File
@@ -14,7 +14,7 @@ extra-deps:
- skylighting-format-latex-0.1
- hslua-2.2.1
- hslua-aeson-2.2.1
- hslua-cli-1.0.0
- hslua-cli-1.1.0
- hslua-classes-2.2.0
- hslua-core-2.2.1
- hslua-marshalling-2.2.1