summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tlpfiles
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/bin/tlpfiles')
-rwxr-xr-xMaster/tlpkg/bin/tlpfiles11
1 files changed, 4 insertions, 7 deletions
diff --git a/Master/tlpkg/bin/tlpfiles b/Master/tlpkg/bin/tlpfiles
index ca8af22b6c9..209d79bc42d 100755
--- a/Master/tlpkg/bin/tlpfiles
+++ b/Master/tlpkg/bin/tlpfiles
@@ -21,24 +21,21 @@ use TeXLive::TLConfig;
use TeXLive::TLPDB;
use Pod::Usage;
use Getopt::Long;
+use TeXLive::TLUtils;
our $FILE;
our %DB_BY_FILE; # used privately below.
our @opt_pkgof = ();
-my $opt_debug = 0;
my $help = 0;
+TeXLive::TLUtils::process_logging_options();
+
GetOptions("pkgof=s" => \@opt_pkgof,
- "debug!", "help|?" => \$help) or pod2usage(1);
+ "help|?" => \$help) or pod2usage(1);
pod2usage(-exitstatus => 0, -verbose => 2) if $help;
-if ($opt_debug) {
- $::LOGLEVELFILE = $::LOG_DDDEBUG;
- $::LOGLEVELTERMINAL = $::LOG_DDDEBUG;
-}
-
exit (&main ());