mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-05 22:11:12 +08:00
minor simplification
I delete the style and styleall options after I use them. This is defensive and clarifies the intent
This commit is contained in:
parent
d4ca90e1bd
commit
5123ca73d3
@ -138,17 +138,13 @@ sub interpretCommandline
|
||||
# --curvestyleall, so fill that in
|
||||
if( $options{styleall} )
|
||||
{
|
||||
if($options{curvestyleall} )
|
||||
{
|
||||
$options{curvestyleall} .= " $options{styleall}";
|
||||
if($options{curvestyleall} ) { $options{curvestyleall} .= " $options{styleall}"; }
|
||||
else { $options{curvestyleall} = $options{styleall}; }
|
||||
delete $options{styleall};
|
||||
}
|
||||
else
|
||||
{
|
||||
$options{curvestyleall} = $options{styleall};
|
||||
}
|
||||
}
|
||||
push @{$options{curvestyle}}, @{$options{style}};
|
||||
|
||||
push @{$options{curvestyle}}, @{$options{style}};
|
||||
delete $options{style};
|
||||
|
||||
# --legend and --curvestyle options are conceptually hashes, but are parsed as
|
||||
# arrays in order to preserve the ordering. I parse both of these into hashes
|
||||
|
Loading…
Reference in New Issue
Block a user