option --keeptempfiles for debugging

This commit is contained in:
hjp 2010-04-02 07:52:05 +00:00
parent 358feec650
commit c39fbfb48b
1 changed files with 3 additions and 0 deletions

3
tsplot
View File

@ -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);