Spatie\Backup\Commands\BackupCommand::guardAgainstInvalidOptions PHP Method

guardAgainstInvalidOptions() protected method

    protected function guardAgainstInvalidOptions()
    {
        if ($this->option('only-db') && $this->option('only-files')) {
            throw InvalidCommand::create('Cannot use `only-db` and `only-files` together');
        }
    }