die $USAGE unless @ARGV == 3; #or however many args you want