Browse Source

Add --version

master
Matthieu Moy 13 years ago
parent
commit
7eecabd319
  1. 7
      git-latexdiff

7
git-latexdiff

@ -33,6 +33,8 @@
# #
# Ideally, these two scripts should be merged. # Ideally, these two scripts should be merged.
git_latexdiff_version=1.0
usage () { usage () {
cat << EOF cat << EOF
Usage: $(basename $0) [options] OLD [NEW] Usage: $(basename $0) [options] OLD [NEW]
@ -54,6 +56,7 @@ Options:
copy resulting PDF into <file> copy resulting PDF into <file>
(usually ending with .pdf) (usually ending with .pdf)
--verbose, -v give more verbose output --verbose, -v give more verbose output
--version show git-latexdiff version.
EOF EOF
} }
@ -123,6 +126,10 @@ while test $# -ne 0; do
"--verbose"|"-v") "--verbose"|"-v")
verbose=1 verbose=1
;; ;;
"--version")
echo "$git_latexdiff_version"
exit 0
;;
*) *)
if test -z "$1" ; then if test -z "$1" ; then
echo "Empty string not allowed as argument" echo "Empty string not allowed as argument"

Loading…
Cancel
Save