diff --git a/src/Handler/AbstractHandler.php b/src/Handler/AbstractHandler.php index 46a5b85..765ad72 100644 --- a/src/Handler/AbstractHandler.php +++ b/src/Handler/AbstractHandler.php @@ -209,6 +209,7 @@ protected function annotationVars(): array $binName = $this->input->getScriptName(); $command = $this->input->getCommand(); $fullCmd = $this->input->buildFullCmd($command); + $cmdPath = $binName . ' ' . $command; // e.g: `more info see {name}:index` return [ @@ -222,7 +223,8 @@ protected function annotationVars(): array 'command' => $command, // demo OR home:test 'fullCmd' => $fullCmd, // bin/app demo OR bin/app home:test 'fullCommand' => $fullCmd, - 'binWithCmd' => $binName . ' ' . $command, + 'cmdPath' => $cmdPath, + 'binWithCmd' => $cmdPath, ]; } @@ -239,7 +241,11 @@ protected function initForRun(): void } $this->addPathNode($this->commandName); - $this->commentsVars['binWithCmd'] = $this->getPath(); + + $binName = $this->input->getScriptName(); + $cmdPath = $binName . ' ' . $this->getPath(); + + $this->commentsVars['cmdPath'] = $this->commentsVars['binWithCmd'] = $cmdPath; } /**