[Module::Build] args attribute in new
Status: Beta
Brought to you by:
kwilliams
|
From: Uri G. <ur...@st...> - 2003-12-30 05:13:22
|
i have been in the midst of converting the install for stem to
module::build. dave rolsky first did some work on this and i am finally
going to finish it. i have some nice stuff working and some of you might
be interested in it (a file grep with file patterns matching manifest
lines, tests run in the order in manifest, a manifest grep, user query
subs, etc.) and maybe some of them could be integrated into build.
my question here is about the args attribute in the new constructor. the
docs state that $self->{'args'} will have the parsed out command line
arguments. but dave also passed in a hash ref to the 'args' attribute
in the call to new. after checking the source i see that that hash will
be used to set args before the command line stuff is parsed so it is in
effect a set of default args. but i can't find any docs that describe
this behavior. so is it a doc bug or an undocumented feature? now dave
is the one that did this originally and i want to keep the use of this
ghost feature. will it stay in the code? if so, it should be
documented. i know, patches welcome. but i am not even sure it is a real
feature. and it would take all of two lines to document it. and i would
rename (or support both names like requires/prereq) it to default_args
as that is what it really is. the hash contains the default values for
the 'args' hash but they can be overridden by command line args.
Module::Build: 0.21
thanx,
uri
--
Uri Guttman ------ ur...@st... -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
|