X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=springgraph%2Fspringgraph;h=b103c5cf8ca66e485f783ca48eeeb64c3fe330ab;hb=a210262b5964e5dc0ff5be71b6ce2c586d9d971e;hp=4a179882ec36c2af45a3c95950325dd84140558a;hpb=5d3f53d44172671c3b76b5e3663b2dc62f6ae3fb;p=pgp-tools.git diff --git a/springgraph/springgraph b/springgraph/springgraph index 4a17988..b103c5c 100755 --- a/springgraph/springgraph +++ b/springgraph/springgraph @@ -74,7 +74,6 @@ # v0.80 Mar 19 2003 optimization patch from Marco Bodrato # v0.81 Aug 20 2003 Caption stderr progress notes -use GD; use Getopt::Std; use strict; use vars qw( @@ -180,6 +179,13 @@ $twopi = $pi * 2; getopts('s:pvhtb:l:'); +# -h: Show some help +if ($opt_h) { + usage(); + exit 1; +} +use GD; + # -s: set scale if ($opt_s) { @@ -204,11 +210,6 @@ if ($opt_v) $vrml = 0; } -# -h: Show some help -if ($opt_h) { - usage(); - exit 1; -} # -t: Make background transparent if ($opt_t) @@ -880,9 +881,12 @@ sub cylinder { sub usage { print < example.png -p Create a file that can be rendered with POV-Ray -v Create a VRML file