in reply to Re^2: Combining two scripts with a command line switch?
in thread Combining two scripts with a command line switch?

I usually start scripts that require arguments with
die "Usage message\n" unless @ARGV;
Make sure you put that before the call to GetOptions (it modifies @ARGV)