Commit f39e9b9
committed
bug #62627 [Console] Preserve
This PR was merged into the 6.4 branch.
Discussion
----------
[Console] Preserve `--help` option when a command is not found
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix #62618
| License | MIT
This PR resolves 3 issues:
1. The first one is the commented in the issue. The `--help` is not preserved when a command is not found
2. The second issue this pull request resolves is that hidden commands are currently being displayed if the `--help` option is present and the original command is not found.
3. The final issue this pull request resolves is that the "Did you mean?" prompt is not displayed if no alternative command is present.
Commits
-------
ac79f5b [Console] Preserve `--help` option when a command is not found--help option when a command is not found (santysisi)File tree
2 files changed
+38
-7
lines changed- src/Symfony/Component/Console
- Tests
2 files changed
+38
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
736 | | - | |
| 735 | + | |
| 736 | + | |
737 | 737 | | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
742 | 741 | | |
743 | | - | |
| 742 | + | |
744 | 743 | | |
745 | 744 | | |
746 | 745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2439 | 2439 | | |
2440 | 2440 | | |
2441 | 2441 | | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
2442 | 2474 | | |
2443 | 2475 | | |
2444 | 2476 | | |
| |||
0 commit comments