bin/xyzimage.pl
changeset 14 b1e2580a0ca7
parent 8 9ed02f081b72
child 26 a9f74601ca3c
equal deleted inserted replaced
13:ccfb8a3410da 14:b1e2580a0ca7
    15 
    15 
    16 my @xiargs;
    16 my @xiargs;
    17 my @popts;
    17 my @popts;
    18 print $#ARGV . ": " . join(', ', @ARGV) . "\n";
    18 print $#ARGV . ": " . join(', ', @ARGV) . "\n";
    19 
    19 
       
    20 #TODO: Don't use Getopt. Parse by hand.
    20 GetOptions(
    21 GetOptions(
    21 	'g=f'         => sub { push(@xiargs, '-g') }, # ximage: -g gamma
    22 	'g=f'         => sub { push(@xiargs, '-g') }, # ximage: -g gamma
    22 	'c=i'         => sub { push(@xiargs, '-c') }, # ximage: -c ncolors
    23 	'c=i'         => sub { push(@xiargs, '-c') }, # ximage: -c ncolors
    23 	'geometry=s'  => sub { push(@xiargs, '-c') }, # ximage: -geometry geometry
    24 	'geometry=s'  => sub { push(@xiargs, '-c') }, # ximage: -geometry geometry
    24 	#TODO: deal with =geometry
    25 	#TODO: deal with =geometry