Skip to content

Commit f239b51

Browse files
authored
Merge pull request #68 from aik099/45-generate-aliased-hook-by-default-feat
Default "--program" to auto-completed script filename without path
2 parents 5461d43 + 06589bc commit f239b51

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/CompletionCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
5656
$alias = $input->getOption('program');
5757
$multiple = (bool)$input->getOption('multiple');
5858

59-
// When completing for multiple apps having absolute path in the alias doesn't make sense.
60-
if (!$alias && $multiple) {
59+
if (!$alias) {
6160
$alias = basename($program);
6261
}
6362

0 commit comments

Comments
 (0)