You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current way needs relations are checked in void App::_process_requirements()
is missleading.
Assume you have an application 'test' with a CLI11 config system configuring
following needs relations between some subcommands:
app ---> sub1 ---> sub11
| |-> sub12
|-> sub2
A) Current needs processing gives:
./test -> test requires sub1 // OK for the user
./test sub1 -> test requires sub2 // OK for the user
./test sub1 sub2 -> sub1 requires sub11 // Confuses the user
./test sub1 sub2 sub11 -> ready for execution
B) Recursive needs processing gives:
./test -> test requires sub1 // OK
./test sub1 -> sub1 requires sub11 // Much more intuitive for the user
./test sub1 sub2 -> sub1 requires sub11 // Makes sense: sub1 configuration is not compleate yet
./test sub1 sub11 -> test requires sub2 // OK, sub1 configuration is compleate
./test sub1 sub11 sub2 -> ready for execution
0 commit comments