fixed regression to allow no given extracmds, histogram or y2 options

This commit is contained in:
Dima Kogan 2012-09-02 23:49:40 -07:00
parent 01de359dcd
commit 54f3751270

View File

@ -120,7 +120,8 @@ sub interpretCommandline
# expand options that are given as comma-separated lists # expand options that are given as comma-separated lists
for my $listkey (qw(extracmds histogram y2)) for my $listkey (qw(extracmds histogram y2))
{ {
@{$options{$listkey}} = map split('\s*,\s*', $_), @{$options{$listkey}}; @{$options{$listkey}} = map split('\s*,\s*', $_), @{$options{$listkey}}
if defined $options{$listkey};
} }
# parse stream option. Allowed only numbers >= 0 or 'trigger' # parse stream option. Allowed only numbers >= 0 or 'trigger'