Commit f74e104
committed
App::_process: add conditional logic for old vs. new help processing
Some use cases require altering subcommand/option states (and thus the help
output) based on a flag stored in the config file. In this case, running
`_process_callbacks()` before `_process_help_flags()` is necessary.
A new compile-time option `CLI11_USE_OLD_HELP_PROCESSING` restores this
“old” behavior by executing callbacks prior to help flag processing.
Extends CLIUtils#11861 parent 1ab8646 commit f74e104
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
| 1416 | + | |
1416 | 1417 | | |
1417 | 1418 | | |
1418 | 1419 | | |
| 1420 | + | |
1419 | 1421 | | |
1420 | 1422 | | |
1421 | 1423 | | |
| |||
1427 | 1429 | | |
1428 | 1430 | | |
1429 | 1431 | | |
| 1432 | + | |
1430 | 1433 | | |
1431 | 1434 | | |
1432 | 1435 | | |
| 1436 | + | |
1433 | 1437 | | |
1434 | 1438 | | |
1435 | 1439 | | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1436 | 1446 | | |
1437 | 1447 | | |
1438 | 1448 | | |
| |||
0 commit comments