All sounds good! As just discussed, the solution for #1 looks good, or at least
is consistent how the "reparsing" of the search engines is otherwise handled for
iterated search. In another context, we discussed that in the long run, the
option parser should probably create factories that can create objects to do the
actual heavy computations, rather than directly creating the objects that do the
heavy computations. In this world, hopefully the reparsing in iterated search
would become obsolete, solving this problem.
Regarding #2, this has something to do with the fact that parsing vs. finding
out which options are needed are handled by the same mechanism. I think for this
"help mode" of the option parser you can use an empty predefinitions object.
|