1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2024-12-23 04:13:20 +02:00

cameo/zstack.pl (usage): describe option -r

Also show usage on unknown option.
This commit is contained in:
Werner Almesberger 2012-03-19 15:21:24 -03:00
parent 76b1b3e42e
commit ce243b6a79

View File

@ -15,6 +15,7 @@
sub usage
{
print STDERR "usage: $0 [-r] z-start z-maxstep [file ...]\n";
print STDERR " -r reverse Z stacking. Also swaps X and Y.\n";
exit(1);
}
@ -39,6 +40,7 @@ if ($ARGV[0] eq "-r") {
shift @ARGV;
$reverse = 1;
}
&usage if $ARGV[0] =~ /^-[^0-9]/;
$z0 = shift @ARGV;
$zs = shift @ARGV;