I don't see any problem with this, especially given the vil precedent.
> -----Original Message-----
> From: Miguel A. Figueroa-Villanueva [mailto:miguelf@...]
> Sent: Friday, January 09, 2009 4:15 PM
> To: vxl maintainers
> Subject: [Vxl-maintainers] vul exception mechanism proposal
> I would like to apply the attached patch to vul. The problem
> that I'm facing is that when vul_arg is parsing command line
> options and finds a '-?' (i.e., help option), it displays the
> help message and bails out with vcl_exit.
> I think it is more appropriate to throw an exception, so that
> people (such as myself) can use it in an interactive
> application and handle it as needed.
> I have basically copied Ian's exception mechanism from vil
> and mul/mbl. I have been careful to ensure that the current
> behavior for platforms without exception handling support
> remains the same.
> If this is reasonable, I'll apply the patch and create a unit
> test as well.