views:

41

answers:

1

Hi,

Can I tell boost program_options somehow, that a specific options has a limited number of values? For example, the option "--verbosity" may only be debug,high or low?!?

Thanks! Nathan

+1  A: 

The documentation explains how to write Custom Validators.

pmr