After a long time, I came to the conclusion that I found that the Laravel 5.2 machine gun command has an error, or it is not an error, since at least one command will be executed according to the first comparison.
Suppose you have two signatures in two different batch files, for example, in the following four cases:
Case I:
protected $signature = 'crawl:author-usa'; protected $signature = 'crawl:author-uk';
OR Case II:
protected $signature = 'crawl:authorusa'; protected $signature = 'crawl:authoruk';
OR case III:
protected $signature = 'crawl-bq:author-usa'; protected $signature = 'crawl-bq:author-uk';
OR Case IV:
protected $signature = 'crawl-bq:authorusa'; protected $signature = 'crawl-bq:authoruk';
In any case, if you run the php artisan crawl:auther and then for Case I, it will show an ambiguous error, for example:
[Symfony\Component\Console\Exception\CommandNotFoundException] Command "crawl:author" is ambiguous (crawl:author-usa, crawl:author-uk).
It will show the same ambiguous message for the remaining 3 cases, but the signature text will be different.
Now suppose the following signature for 4 different cases:
Case I:
protected $signature = 'crawl:author-usa';
OR Case II:
protected $signature = 'crawl:authorusa';
OR case III:
protected $signature = 'crawl-bq:author-usa';
OR Case IV:
protected $signature = 'crawl-bq:authorusa';
In any case, if you run the php artisan crawl:auther , it will execute this command.
For these two scenarios, this is due to the Symfony / Cconsole find () function. The exact command is executed here: crawl[^:]*[^:]*:author[^:]*[^:]* . This means that if any signature has crawl<anything>:author<anything> , it will match php artisan crawl:author
Now, if I come to a solution to this problem, first of all I need to change the public function find($name) about 509 lines to a symfony / consle file . Or, if it is possible to overwrite this function (I'm not sure how this redefinition can be performed).
I was inspired by @ Nadeem0035, where he mentioned the line public function find($name) around 509 in the symfony / consle file . I would be happy if I could reward generosity as the duration of the game, since at least he showed me a way to find the exact script of the console team. That's why the vote before the vote :)