# from Michael G Schwern
# on Thursday 29 November 2007 15:34:
>One of...
>
>--test_args='--foo --bar'
>
>or
>
>--start_test_args --foo --bar --end_test_args
>
>I prefer the former, but if technical limitations in the way we call
> the test programs force us to keep the arguments as a list...
It's not so-much 'technical limitations' as 'loss of clarity' wrt spaces
that kills the quoted scheme.
I suggest that there be a start sentinel and optional end sentinell
--test-args --foo --bar --baz --whatever and -- such
Would call the tests with qw(--foo --bar --baz --whatever and -- such).
That is, args continue thru to $ARGV[$#ARGV] if there is no
grep({$ARGV[$_] eq '--end-test-args'} 0..$#ARGV) or so.
This means buzzword#42 (simplethingssimple-hardthingspossible) where the
complicated (aliases, wrappers, etc) case is like:
--test-args --foo --bar --baz --whatever and -- such --end-test-args \
--more-prove-args and --things "of this nature" -- \
--and --some --funny-filenames too
Or so.
--Eric
--
"Left to themselves, things tend to go from bad to worse."
--Murphy's Corollary
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------