Commit ead8d93
committed
fix: program: print task-help if ParseError occurs
This will f.e. print the help of a task when it is not given its mandatory args:
```bash
> # Prints help if my_task expects mandatory positional arg
> inv my_task
```
If no name is available for the context, f.e. the core/None context,
we skip the specific task print since this means it was not a 'user' task which failed.
Signed-off-by: laurensmiers <[email protected]>1 parent 26d243c commit ead8d93
2 files changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
| 407 | + | |
406 | 408 | | |
407 | 409 | | |
408 | 410 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
656 | 673 | | |
657 | 674 | | |
658 | 675 | | |
| |||
0 commit comments