From 9ded4a7982db33c22b2469ecfee33f2f6b01cf32 Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <andreas.romeyke@slub-dresden.de> Date: Fri, 18 Nov 2022 14:46:51 +0100 Subject: [PATCH] - simplified argument --- lib/SLUB/LZA/Rosetta/TA/Command/log.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/SLUB/LZA/Rosetta/TA/Command/log.pm b/lib/SLUB/LZA/Rosetta/TA/Command/log.pm index 4187f1e..8953a2d 100644 --- a/lib/SLUB/LZA/Rosetta/TA/Command/log.pm +++ b/lib/SLUB/LZA/Rosetta/TA/Command/log.pm @@ -22,7 +22,7 @@ Examples: * Are there lines with regex "ma[tc]?h"? $0 log --match "ma[tc]?h" * Give me a trace of specific sip - $0 log --trace-sip sip293144 + $0 log --trace sip293144 DESCR sub description { @@ -41,7 +41,7 @@ sub opt_spec { ["todate=s" => "search ending with date"], ["level=s@" => "levels to search for. Levels could be: 'error', 'warn', 'info', 'debug'. You could use multiple levels by repeating"], ["match=s" => "perl regex to search for" => {default=>".*"}], - ["trace-sip=s" => "trace a sip with given ID (SIP-ID or Deposit-ID)"], + ["trace=s" => "trace a sip/IE with given ID (SIP-ID or Deposit-ID or IE PID)"], ); } @@ -125,8 +125,8 @@ sub execute { } # prepare trace my $with_trace; - if (defined $opt->trace_sip) { - $with_trace = $opt->trace_sip; + if (defined $opt->trace) { + $with_trace = $opt->trace; if (defined $opt->colorize) { $output_filter = sub { colorize($_[0], $opt, $match_rx); }; } else { -- GitLab