mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-23 08:25:31 +02:00
cameo/zstack.pl (usage): describe option -r
Also show usage on unknown option.
This commit is contained in:
parent
76b1b3e42e
commit
ce243b6a79
@ -15,6 +15,7 @@
|
|||||||
sub usage
|
sub usage
|
||||||
{
|
{
|
||||||
print STDERR "usage: $0 [-r] z-start z-maxstep [file ...]\n";
|
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);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,6 +40,7 @@ if ($ARGV[0] eq "-r") {
|
|||||||
shift @ARGV;
|
shift @ARGV;
|
||||||
$reverse = 1;
|
$reverse = 1;
|
||||||
}
|
}
|
||||||
|
&usage if $ARGV[0] =~ /^-[^0-9]/;
|
||||||
|
|
||||||
$z0 = shift @ARGV;
|
$z0 = shift @ARGV;
|
||||||
$zs = shift @ARGV;
|
$zs = shift @ARGV;
|
||||||
|
Loading…
Reference in New Issue
Block a user