On Thu, 17 May 2001, Mr.Bad wrote:

> >>>>> "t" == thelema  <thelema at mh246001.truman.edu> writes:
> 
> Ah. Let me remind you of an IRON RULE OF PROGRAMMING: more code = more
> bugs. Always, always, always. 
> 
>     t> Yeah, all sorts of documentation needs to be changed, but as I
>     t> learned from oierw, there's all sorts of functionality that was
>     t> never documented in the first place, so we'd have to go over
>     t> the client docs sometime.
> 
> Since command-line processing now works the way -you- want it to, why
> don't you take on this task, too? B-)
> 
Prodding me into hitting the docs...  I guess I can finish what I've
started.  /me goes and searched the docs tree for references to
insert/requestclient

> Personally, I prefer GNU-style cmdlines, so I think this was probably
> the right thing. I'd just ask that you doc this stuff, and perhaps
> make the cmdline services available to all Freenet programs by lifting
> it into Params.java rather than locally doing it in IC and RC.
> 
As for pushing it into params, that's not quite possible.  To do this,
you'd have to pass to a magic routine the format for each arguments
(how many parameters and where those arguments get stored) as well as
dealing with associating short arguments in there.  Much less the
--debugSet, which has as one of its arguments the parameter where the
other gets stored.  It's all (pretty simple) custom code for handling
each parameter seperately.  I wish I was able to push this kind of
parameter handling into Params (even though it's probably going to be
replaced by EParams soon).  It's just that interfacing is going to be
the biggest pain.  Maybe once we get automatic decription text for each
parameter (so that the usage is generated automatically), I'll get
involved in that to integrate the command-line stuff in that.  But for
now, it's not going to be reasonable.

Thelema
-- 
E-mail: thelema314 at bigfoot.com        If you love something, set it free.
GPG 1536g/B9C5D1F7 fpr:075A A3F7 F70B 1397 345D  A67E 70AA 820B A806 F95D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20010517/4981c4b0/attachment.pgp>

Reply via email to