[Boost-users ] [program options: Is there a way to remove some options from the variables_map?]
hi, I would like to know if there is any method provided to remove selected options from variables map. I am using program options to parse and assign initial values to all parameters in an application. I have a situtation where i would like to remove some of the parameters from the store ( variables_map) before i call notify. ( before the program options part is called i get a list of options that are already initialized. These options should not be parsed again) Currently i am using a dirty approach of removing the options from the command line/ini file. If i can directly remvoe the options from the store it will be much easier ( and safer). As allow_unregistered is supported now, i would not have to bother about unknown options in the command line. Thanks & --------------------------------------------------------------------------------------------------------- Regards, Suresh.T
participants (1)
-
Suresh T