Browse Source

help: split the 'examples' section into a separate --help-examples

master
Matthieu Moy 9 years ago
parent
commit
6dc253cd68
  1. 1
      Makefile
  2. 9
      git-latexdiff

1
Makefile

@ -40,6 +40,7 @@ git-latexdiff.txt: git-latexdiff git-latexdiff.txt.header
( cat git-latexdiff.txt.header ; \
printf '%s\n' ------------ ; \
./git-latexdiff --help ; \
./git-latexdiff --help-examples ; \
printf '%s\n' ------------ ) > $@
git-latexdiff.1: git-latexdiff.txt

9
git-latexdiff

@ -79,6 +79,7 @@ If "--" is used for NEW, then diff against the working directory.
Options:
--help this help message
--help-examples show examples of usage
--main <file.tex> name of the main LaTeX file
--no-view don't display the resulting PDF file
--latex run latex instead of pdflatex
@ -130,7 +131,11 @@ Options:
--latexdiff-flatten use --flatten from latexdiff instead of latexpand
Unrecognized options are passed unmodified to latexdiff.
EOF
}
examples () {
cat <<EOF
Examples:
Pass --type=CHANGEBAR to latexdiff to get changebars in the margins
@ -202,6 +207,10 @@ while test $# -ne 0; do
usage
exit 0
;;
"--help-examples")
examples
exit 0
;;
"--main")
test $# -gt 1 && shift || die "missing argument for $1"
main=$1

Loading…
Cancel
Save