diff --git a/tsplot b/tsplot index bd22c03..75acb7c 100755 --- a/tsplot +++ b/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);