On Fri, May 04, 2001 at 10:21:15AM -0400, Tavin Cole wrote: > On Fri, May 04, 2001 at 04:14:17PM +0200, Oskar Sandberg wrote: < > > > Maybe we should add a comment string to the option classes. That way the > > node could autogenerate full usage screens and alike as well... > > I did add a comment string (actually in Defaults, not directly in > Params.Option). This is what gets put in the generated config file, > and also printed to the user.
The comment definitely belongs directly in the Object. In fact, so does the default probably... > What I didn't bother with (yet) was the "question string" > -- not sure whether that belongs in Defaults or directly in > Freenet.scripts.Setup. Freenet.scripts.Setup will probably need to > implement a few custom methods to override the default behaviors, > it might as well keep track of its own questions too. The problem with this model is that some questions need to be handled by special code. I guess the best way to do it would be to have the option of adding an implementation of an Interface with a method like: getSetupValue() to an option. Maybe having one constructor on Option take an instance of that interface, and another just taking Comment and Default strings
