Skip to content

Commit

Permalink
call with --help or --version now exits with code 0 (fixes issue #248)
Browse files Browse the repository at this point in the history
  • Loading branch information
ftilmann committed Dec 26, 2021
1 parent ab9e8da commit d8bb361
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 10 additions & 4 deletions latexdiff
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,20 @@
### - change meaning of --packages option such that this packages are used in addition of automatically detected packages (possibly introduce option --only-packages that overrides automatic choices completely
#
# Version 1.3.2
# API adaptions:
# - latexdiff now completes with exit code 0 after --help or --version command (see issue #248)
# New features / feature extensions
# - extend CUSTOMDIFCMD related postprocessing to deal properly with multiline commands, or a sequence of several commands in the same line (see github issue #204)
# - fix a bug in biblatex mode, which prevented proper processing of modified \textcite (see: https://tex.stackexchange.com/questions/555157/latexdiff-and-biblatex-citation-commands)
# - -h string fix: add -driver option
# - Support for additional macros from import package (\import, \inputfrom, \includefrom, \subimport,\subinputfrom, \subincludefrom). Provided by janniklasrose in PR #243 (fixes #239)
# - replace default driver dvips->pdftex
# Bug fixes:
# - fix issue #206 affecting proper markup of text commands which are not safe cmd's at the same time and have multiple arguments
# - fix issue #210 by adding \eqref (amsmath package) to the list of safe commands
# - fix bug reported in issue #168 mangled verbatim line environment
# - fix bug reported in issue #218 by replacing \hspace{0pt} after \mbox{..} auxiliary commands with \hskip0pt.
# - more ways to process \frac correctly with atomic arguments (committed by julianuu PR #246
# - fix a bug in biblatex mode, which prevented proper processing of modified \textcite (see: https://tex.stackexchange.com/questions/555157/latexdiff-and-biblatex-citation-commands)
# - -h string fix: add -driver option
#
# Version 1.3.1.1
# - remove spurious \n to fix error: Unknown regexp modifier "/n" at .../latexdiff line 1974, near "=~ " (see github issue #201)
Expand Down Expand Up @@ -483,7 +487,8 @@ if ( $help ) {


if ( $version ) {
die $versionstring ;
print STDERR $versionstring ;
exit 0;
}

print STDERR $versionstring if $verbose;
Expand Down Expand Up @@ -3674,7 +3679,7 @@ sub exetime {


sub usage {
die <<"EOF";
print STDERR <<"EOF";
Usage: $0 [options] old.tex new.tex > diff.tex
Compares two latex files and writes tex code to stdout, which has the same format as new.tex but
Expand Down Expand Up @@ -3937,6 +3942,7 @@ the API should be considered less stable than for the other options.
--no-links Suppress generation of hyperreferences, used for minimal diffs
(option --only-changes of latexdiff-vc).
EOF
exit 0;
}

=head1 NAME
Expand Down
6 changes: 4 additions & 2 deletions latexrevise
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ if ( $help ) {
}

if ( $version ) {
die $versionstring ;
print STDERR $versionstring ;
exit 0;
}


Expand Down Expand Up @@ -378,7 +379,7 @@ sub splitdoc {


sub usage {
die <<"EOF";
print STDERR <<"EOF";
Usage: $0 [OPTIONS] [diff.tex] > revised.tex
Read a file diff.tex (output of latexdiff), and remove its markup.
Expand Down Expand Up @@ -457,6 +458,7 @@ options; these functions can be very useful outside the latexdiff context, too.
--verbose Verbose output
EOF
exit 0;
}

=head1 NAME
Expand Down

0 comments on commit d8bb361

Please sign in to comment.