Overview
Features
Download
Documentation
Community
Add-Ons & Services

What does "required option" mean?

Please post support and help requests here.

What does "required option" mean?

Postby merdem » 22 Aug 2006, 23:54

Hello,

I understand an util::option object can be set to be required.

Does the user have to check for the existance of the "required option" when the util::application object is initialized?

In the SampleApp provided, if I change an option to be required and not provide it on the command line, the program runs normally.

I see a couple of option exception classes in the documentation. When are they thrown?

Thnx,

Murat
merdem
 
Posts: 14
Joined: 19 Jul 2006, 22:28

Re: What does "required option" mean?

Postby peter » 23 Aug 2006, 08:23

> Hello,
>
> I understand an util::option object can be set to be required.
>
> Does the user have to check for the existance of the "required option" when the util::application object is initialized?

That depends on the Poco version you are using.
In 1.1 required options were (incorrectly) ignored,
in 1.2 they are checked :-)

Best regards,
Peter
peter
 
Posts: 67
Joined: 11 Jul 2006, 16:26
Location: Austria


Return to Support

Who is online

Users browsing this forum: indijanc and 1 guest