How to enable an option that allows you to use other options in the settings of the Boost program without using variables?

I use program parameters to analyze the command line parameters of my application.

I have several options, such as -Ox, -Oy, -Oz, ... and I want to have a super option - everything that allows Ox and Oy, and another one -Oub that allows Oz and Ow.

Is there a way to do this using the parameters of the Boost program?

At first I wanted to check the Oall value, and then manually turn on Ox and Oy, but after parsing it is impossible to change the values.

I want to avoid using variables to store Ox, Oy values, because I can have many abstract options.

thank

+5
source share
1

, , .

if (Oall)
{Ox = Oy = Oz = true;}

+1

All Articles