When using OptionGroupPythonClassWithDict options in an OptionGroup
with other Options, it can happen that the combinaison of some options
of each group makes the command invalid.
To solve that issue, this patch adds a bitmask argument to the
OptionGroupPythonClassWithDict constuctor that is used to mark each
option as required (or not).
If the required_options bitmask isn't passed to the constructor, the
class will keep its default behaviour, making the --script-class and
--python-function options required.
Signed-off-by: Med Ismail Bennani <email@example.com>