option --keeptempfiles for debugging
This commit is contained in:
parent
358feec650
commit
c39fbfb48b
3
tsplot
3
tsplot
|
@ -52,12 +52,14 @@ my $time_t =0;
|
|||
my $style = "lines";
|
||||
my $tsv = 0;
|
||||
my $stacked = 0;
|
||||
my $keeptempfiles;
|
||||
GetOptions('output_format|output-format=s' => \$output_format,
|
||||
'log_y|log-y' => \$log_y,
|
||||
'time_t' => \$time_t,
|
||||
'style:s' => \$style,
|
||||
'tsv' => \$tsv,
|
||||
'stacked' => \$stacked,
|
||||
'keeptempfiles' => \$keeptempfiles,
|
||||
)
|
||||
or pod2usage(verbose => 0);
|
||||
|
||||
|
@ -66,6 +68,7 @@ my $sep = $tsv ? qr/\t/ : ' ';
|
|||
binmode STDOUT, ':raw';
|
||||
|
||||
my $ts = TimeSeries->new(output_format => $output_format);
|
||||
$ts->{keeptempfiles} = 1 if $keeptempfiles;
|
||||
while (<>) {
|
||||
chomp;
|
||||
my @legend = split($sep);
|
||||
|
|
Loading…
Reference in New Issue