Platformsh\Cli\Command\CompletionCommand::getProjectIdFromCommandLine PHP Method

getProjectIdFromCommandLine() protected method

Get the project ID the user has already entered on the command line.
protected getProjectIdFromCommandLine ( string $commandLine ) : string | false
$commandLine string
return string | false
    protected function getProjectIdFromCommandLine($commandLine)
    {
        if (preg_match('/\\W(\\-\\-project|\\-p|get) ?=? ?[\'"]?([0-9a-z]+)[\'"]?/', $commandLine, $matches)) {
            return $matches[2];
        }
        return false;
    }