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
|
||||
|
||||
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
|
||||
- You can have as many arg/file combinations you want
|
||||
- The argument array is cleared between input files
|
||||
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
|
||||
# TODO:
|
||||
# 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