File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ protected function annotationVars(): array
209
209
$ binName = $ this ->input ->getScriptName ();
210
210
$ command = $ this ->input ->getCommand ();
211
211
$ fullCmd = $ this ->input ->buildFullCmd ($ command );
212
+ $ cmdPath = $ binName . ' ' . $ command ;
212
213
213
214
// e.g: `more info see {name}:index`
214
215
return [
@@ -222,7 +223,8 @@ protected function annotationVars(): array
222
223
'command ' => $ command , // demo OR home:test
223
224
'fullCmd ' => $ fullCmd , // bin/app demo OR bin/app home:test
224
225
'fullCommand ' => $ fullCmd ,
225
- 'binWithCmd ' => $ binName . ' ' . $ command ,
226
+ 'cmdPath ' => $ cmdPath ,
227
+ 'binWithCmd ' => $ cmdPath ,
226
228
];
227
229
}
228
230
@@ -239,7 +241,11 @@ protected function initForRun(): void
239
241
}
240
242
241
243
$ this ->addPathNode ($ this ->commandName );
242
- $ this ->commentsVars ['binWithCmd ' ] = $ this ->getPath ();
244
+
245
+ $ binName = $ this ->input ->getScriptName ();
246
+ $ cmdPath = $ binName . ' ' . $ this ->getPath ();
247
+
248
+ $ this ->commentsVars ['cmdPath ' ] = $ this ->commentsVars ['binWithCmd ' ] = $ cmdPath ;
243
249
}
244
250
245
251
/**
You can’t perform that action at this time.
0 commit comments