protected function getValidExecProfiles(string $profileName = null)
    {
        $validProfs = [
            'production' => 'production',
            'dev' => 'dev',
            'staging' => 'staging',
            'sandbox' => 'sandbox',
            'demo' => 'demo',
            'debug' => 'debug'
        ];

        if ($profileName) {
            if (!isset($validProfs[$profileName])) {
                throw new \RuntimeException("Programmer: you've requested a profile by name `$profileName`, but that profile is not defined");
            } else {
                return $validProfs[$profileName];
            }
        }

        return $validProfs;
    }