aboutsummaryrefslogtreecommitdiff
path: root/MANUAL.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-03-06 10:32:51 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-03-06 10:32:51 -0800
commit735a69de6b94e32ee9aceb44a893de4067f24354 (patch)
tree375e482e7922ce019fc1d3ed3750e7430b432712 /MANUAL.txt
parent26524246d0e3460338c9e90a171c554646abe4dc (diff)
downloadpandoc-735a69de6b94e32ee9aceb44a893de4067f24354.tar.gz
Allow `--resource-path` to accumulate.
Previously, if `--resource-path` were used multiple times, the last resource path would replace the others. With this change, each time `--resource-path` is used, it prepends the specified path components to the existing resource path. Similarly, when `resource-path` is specified in a defaults file, the paths provided will be prepended to the existing resource path. This change also allows one to avoid using the OS-specific path separator; instead, one can simply use `--resource-path` a number of times with single paths. This form of command will not have an OS-dependent behavior. This change facilitates the use of multiple, small defaults files: each can specify a directory containing its own resources without clobbering the resource paths set by the others. Closes #6152.
Diffstat (limited to 'MANUAL.txt')
-rw-r--r--MANUAL.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index 8e98ee1eb..a5036b361 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -891,6 +891,11 @@ header when requesting a document from a URL:
will not be searched. For example:
`--resource-path=.:test` will search the working directory
and the `test` subdirectory, in that order.
+ This option can be used repeatedly. Search path components
+ that come later on the command line will be searched before
+ those that come earlier, so
+ `--resource-path foo:bar --resource-path baz:bim` is
+ equivalent to `--resource-path baz:bim:foo:bar`.
`--request-header=`*NAME*`:`*VAL*