argument('identifier'); $all = (bool) $this->option('all'); if (! $identifier && ! $all) { $this->error('식별자 또는 --all 옵션을 지정해야 합니다.'); $this->line('사용법:'); $this->line(' php artisan module:vendor-bundle sirsoft-ecommerce'); $this->line(' php artisan module:vendor-bundle --all'); return self::FAILURE; } $targets = []; if ($all) { foreach ($this->discoverBundledIdentifiers('module') as $id) { $targets[] = ['type' => 'module', 'identifier' => $id]; } } else { $targets[] = ['type' => 'module', 'identifier' => $identifier]; } return $this->runBuildAction( $bundler, $targets, (bool) $this->option('force'), (bool) $this->option('check'), ); } }