mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-06 06:21:16 +08:00
I print out the usage ONLY if requested with --help
This commit is contained in:
parent
58105b064d
commit
6d8dfe578a
@ -211,25 +211,25 @@ if( $options{'3d'} )
|
|||||||
if( !$options{domain} )
|
if( !$options{domain} )
|
||||||
{
|
{
|
||||||
print STDERR "--3d only makes sense with --domain\n";
|
print STDERR "--3d only makes sense with --domain\n";
|
||||||
die $usage;
|
exit -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( defined $options{y2min} || defined $options{y2max} || defined $options{y2} )
|
if( defined $options{y2min} || defined $options{y2max} || defined $options{y2} )
|
||||||
{
|
{
|
||||||
print STDERR "--3d does not make sense with --y2...\n";
|
print STDERR "--3d does not make sense with --y2...\n";
|
||||||
die $usage;
|
exit -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( defined $options{xlen} )
|
if( defined $options{xlen} )
|
||||||
{
|
{
|
||||||
print STDERR "--3d does not make sense with --xlen\n";
|
print STDERR "--3d does not make sense with --xlen\n";
|
||||||
die $usage;
|
exit -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( defined $options{monotonic} )
|
if( defined $options{monotonic} )
|
||||||
{
|
{
|
||||||
print STDERR "--3d does not make sense with --monotonic\n";
|
print STDERR "--3d does not make sense with --monotonic\n";
|
||||||
die $usage;
|
exit -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif(!$options{colormap})
|
elsif(!$options{colormap})
|
||||||
@ -237,7 +237,7 @@ elsif(!$options{colormap})
|
|||||||
if( defined $options{zmin} || defined $options{zmax} || defined $options{zlabel} )
|
if( defined $options{zmin} || defined $options{zmax} || defined $options{zlabel} )
|
||||||
{
|
{
|
||||||
print STDERR "--zmin/zmax/zlabel only makes sense with --3d or --colormap\n";
|
print STDERR "--zmin/zmax/zlabel only makes sense with --3d or --colormap\n";
|
||||||
die $usage;
|
exit -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user