parsing of option is misleading
simpa --preset-h
produces output Info : value of option 'heuristic add h in W' was deduced from sub options. It is better to specify directly the value of this option (with --no-add-h-in-W) to remove ambiguity
.
But actually, --add-h-in-W
(the opposite of guessed value) is compatible with --preset-h
(and more specifically, imply it).
Also, simpa --preset-h
produces Warning : some arguments were not used because they are not compatible with options of upper level. You can remove the following options : [--preset-h]
Possible fixes:
- add a fake option with only argument
--preset-h
as suboption ofadd-h-in-W
- put options sides by side (no hierarchy) and add a validator to check for incompatibles values
- add a field
implied
in classOptionTree
to store values of hidden options