Smylers wrote:
Andy Lester writes:

As much as I like the non-quotedness of the -- or --testargs idea, I
really think it needs to be --testargs='--foo --bar'.

If we have just -- then its straightforward what to do with the
arguments.  After everything up to and including -- has been shifted off
@ARGV, then you can just do:

  my @test_args = @ARGV;

and if $test_file is the test being run you can then do the moral
equivalent of:

  system $test_file, @test_args;

...

++

See also "Mixing command line option with other arguments" in the GetOpt::Long documentation.

http://search.cpan.org/dist/Getopt-Long/lib/Getopt/Long.pm#Mixing_command_line_option_with_other_arguments


Reply via email to