On Mon, Jan 24, 2011 at 5:41 AM, Matthew Mondor <mm_li...@pulsar-zone.net>wrote:
> I tested again with the new changes and the same test code, however I
> now see a line printed about the top level, and am unable to do
> anything to trigger the printing of an error if I type in invalid
> arguments. The message I get: Top level in: #<process TOP-LEVEL>.
>
Let me try to explain it better. In your former example you had two levels
of argument checking: the one in your code (process-command-args) and the
one performed again by si:top-level. That was the reason why redefining
locally *help-file* did not work.
In the new version si:top-level does not invoke process-command-args. The
only argument processing will happen at the beginning. If you wish to signal
an error due to missing or wrong arguments, then you have to customize the
value that you give to process-command-args.
Alternatively, if all the arguments you need are ECL's, then invoke
(SI:TOP-LEVEL T) instead of (SI:TOP-LEVEL).
Juanjo
--
Instituto de FĂsica Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list