src/Console/Add.php
public function tokenizePackageInfo()
    {
        $info = explode(':', $this->argument('package'));

        return [
            'name'    => $info[0],
            'version' => (count($info) > 1) ? last($info) : null,
        ];
    }
public function tokenizePackageInfo()
    {
        $info = explode(':', $this->argument('package'));

        return [
            'name'    => $info[0],
            'version' => (count($info) > 1) ? last($info) : null,
        ];
    }
Get the package name and version provided by user.

Note: We will not store package information in Add command instance
due to possibility of it might be call again in a loop if user
provided an invalid package ID.

@return array