pandoc-make: update usage info (add variable for script name)

This commit is contained in:
PowerUser64 2022-07-06 17:31:38 -07:00
parent ce8c4072f7
commit 5ca146ef9e

View file

@ -5,16 +5,18 @@
# pandoc-make html *.md
usage() {
SCRIPT="${0##*/}"
cat <<-EOF
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:
$0 pdf *.md
$0 .docx *.md # leading .'s are automatically removed from the output format
$SCRIPT pdf *.md
$SCRIPT .docx *.md # leading .'s are automatically removed from the output format
Note:
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
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
- You can have as many arg/file combinations you want
- The argument array is cleared between input files
EOF