pandoc.cli
default_options
table
parse_options
function pandoc.cli.parse_options(args: string[])
-> table
Parses command line arguments into pandoc options. Typically this function will be used in stand-alone pandoc Lua scripts, taking the list of arguments from the global arg.
Parameters:
args- list of command line arguments ({string,…})
Returns:
- parsed options, using their JSON-like representation. (table)