process options which require two accompanying arguments
Posted on 1998-08-18
I know Geopt::Std can process single-character option which require one accompanying argument. But my problem is i would like to invok program with some options which need two accompanying arguments. Is there some way around this?
part of program:
# this program only works when invoke like
# command [-o sth] [-f filename1 filename2]
# but not
# command [-f filename1 filename2][-o sth]
# because processing of @ARGV stops when an argument without # a leading - is encountered.