R
Risto Vaarandi
hi all,
what is the best strategy for reading command line options from a file?
So far, I have used Getopt::Long for processing command line options,
but with some tools I've written command lines tend to get rather long.
I have been thinking of storing some options in a file - when a Perl
script starts, it reads the options from the file and pushes them to
@ARGV, and after that Getopt::Long::GetOptions() is called for the
modified @ARGV list. Is this the optimal way for solving the problem, or
are there better workarounds?
br,
risto
what is the best strategy for reading command line options from a file?
So far, I have used Getopt::Long for processing command line options,
but with some tools I've written command lines tend to get rather long.
I have been thinking of storing some options in a file - when a Perl
script starts, it reads the options from the file and pushes them to
@ARGV, and after that Getopt::Long::GetOptions() is called for the
modified @ARGV list. Is this the optimal way for solving the problem, or
are there better workarounds?
br,
risto