664, 668 - Getopt::Long
Andy Armstrong
n at rciss.us
Thu Oct 4 20:26:38 BST 2007
On 4 Oct 2007, at 20:20, David Golden wrote:
> Or just a generic "define" option that plugs key/value pairs into a
> hash. Plugins should try not to overload existing plugins keywords,
> but there's nothing mandated -- it's up to the user to ensure plugins
> play well together
>
> $ prove -MSome::Plugin -MSome::Other::Plugin -D archive_file=foo.txt
> -D color=yes
Or C. Both of the above :)
-D name=value dumps values in a global namespace that's shared by all
plugins (so they could all recognise -Ddebug=1 for example) and
private options can be inlined after the -M.
# Debug all plugins
$ prove -MSome::Plugin -MSome::Other::Plugin -Ddebug=1
# Debug selectively
$ prove -MSome::Plugin=debug,1 -MSome::Other::Plugin
--
Andy Armstrong, Hexten
More information about the tapx-dev
mailing list