argument('url'); $format = $this->argument('format'); $service = new Service($url, $this->output); if ($format == 'video') { $video = $service->downloadVideo('video'); } elseif ($format == 'audio') { $video = $service->downloadAudio('audio'); } $this->info('Download of ' . $video->getTitle() . ' complete!'); return Command::SUCCESS; } }