File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/Symfony/Component/Console Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -496,7 +496,12 @@ public function findNamespace($namespace)
496
496
}
497
497
498
498
if ($ alternatives = $ this ->findAlternativeNamespace ($ part , $ abbrevs )) {
499
- $ message .= "\n\nDid you mean one of these? \n " ;
499
+ if (1 == count ($ alternatives )) {
500
+ $ message .= "\n\nDid you mean this? \n " ;
501
+ } else {
502
+ $ message .= "\n\nDid you mean one of these? \n " ;
503
+ }
504
+
500
505
$ message .= implode ("\n " , $ alternatives );
501
506
}
502
507
@@ -571,7 +576,11 @@ public function find($name)
571
576
$ message = sprintf ('Command "%s" is not defined. ' , $ name );
572
577
573
578
if ($ alternatives = $ this ->findAlternativeCommands ($ searchName , $ abbrevs )) {
574
- $ message .= "\n\nDid you mean one of these? \n " ;
579
+ if (1 == count ($ alternatives )) {
580
+ $ message .= "\n\nDid you mean this? \n " ;
581
+ } else {
582
+ $ message .= "\n\nDid you mean one of these? \n " ;
583
+ }
575
584
$ message .= implode ("\n " , $ alternatives );
576
585
}
577
586
You can’t perform that action at this time.
0 commit comments