Overview
Features
Download
Documentation
Community
Add-Ons & Services

Check if argv has at least one member from an Options group

Please post support and help requests here.

Check if argv has at least one member from an Options group

Postby cristiantm » 06 Mar 2013, 21:26

I am using Option handling for an Poco++ based application. I have some parameters that should not be present at the same time, and the Option.group() provides me that. But I also do need at least one of the parameters of that group to be present.

I tried to set all group members to required=true, but then I get a exception that the parameter that is not provided but is required was not given.

Is there any way to set a group as required or check if at least one member of a group is present?
cristiantm
 
Posts: 11
Joined: 05 Mar 2013, 13:58

Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron