pandoc-make: update usage info (add variable for script name)
This commit is contained in:
parent
ce8c4072f7
commit
5ca146ef9e
1 changed files with 9 additions and 7 deletions
|
@ -5,18 +5,20 @@
|
||||||
# pandoc-make html *.md
|
# pandoc-make html *.md
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
|
SCRIPT="${0##*/}"
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
Usage:
|
Usage:
|
||||||
$0 [output_type] [pandoc_args for file 1] [pandoc_args for file 1] [input_files]
|
$SCRIPT [output_type] [pandoc_args for file 1] [pandoc_args for file 1] [input_files]
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
$0 pdf *.md
|
$SCRIPT pdf *.md
|
||||||
$0 .docx *.md # leading .'s are automatically removed from the output format
|
$SCRIPT .docx *.md # leading .'s are automatically removed from the output format
|
||||||
|
|
||||||
Note:
|
Notes:
|
||||||
1) To put a file in pandoc arguments without having it be compiled to its own document, put a './' or '../' at the start of the path to it
|
1) To put a file in pandoc arguments without having it be compiled to its
|
||||||
- You can have as many arg/file combinations you want
|
own document, put a './' or '../' at the start of the path to it
|
||||||
- The argument array is cleared between input files
|
- You can have as many arg/file combinations you want
|
||||||
|
- The argument array is cleared between input files
|
||||||
EOF
|
EOF
|
||||||
# TODO:
|
# TODO:
|
||||||
# 2) You can set default arguments in the array PANDOC_DEFAULT_ARGS and export them for this script to use
|
# 2) You can set default arguments in the array PANDOC_DEFAULT_ARGS and export them for this script to use
|
||||||
|
|
Loading…
Add table
Reference in a new issue