--extracmds no longer accepts comma-separated lists

This caused issues with commands that had commas in them
This commit is contained in:
Dima Kogan 2012-09-24 17:44:40 -07:00
parent 116eb8fbc0
commit ba4cc66fe8
2 changed files with 2 additions and 3 deletions

View File

@ -118,7 +118,7 @@ sub interpretCommandline
$options->{curvestyleall} = '' unless defined $options->{curvestyleall}; $options->{curvestyleall} = '' unless defined $options->{curvestyleall};
# 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(histogram y2))
{ {
@{$options{$listkey}} = map split('\s*,\s*', $_), @{$options{$listkey}} @{$options{$listkey}} = map split('\s*,\s*', $_), @{$options{$listkey}}
if defined $options{$listkey}; if defined $options{$listkey};

View File

@ -326,8 +326,7 @@ As an example, if line 3 of the input is "0 9 1 20"
--curvestyleall xxx Additional styles for ALL curves. --curvestyleall xxx Additional styles for ALL curves.
--extracmds xxx Additional commands. These could contain extra global styles --extracmds xxx Additional commands. These could contain extra global styles
for instance. Can be passed multiple times, or passed a comma- for instance. Can be passed multiple times.
separated list
--square Plot data with aspect ratio 1. For 3D plots, this controls the --square Plot data with aspect ratio 1. For 3D plots, this controls the
aspect ratio for all 3 axes aspect ratio for all 3 axes