mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 09:47:06 +00:00
pandoc-lua: support more command line flags
This commit is contained in:
+16
-2
@@ -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
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user