X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/e4bedda9ac3854ceb3d7b88a83155558e9ea6062..ef34a25776877dbabaf19e36b162698071dd6bd2:/src/shpub/Cli.php diff --git a/src/shpub/Cli.php b/src/shpub/Cli.php index 62f824e..44cf8c8 100644 --- a/src/shpub/Cli.php +++ b/src/shpub/Cli.php @@ -79,6 +79,11 @@ class Cli } else { $this->cfg->host = $this->cfg->hosts[$key]; } + } else { + $key = $this->cfg->getDefaultHost(); + if ($key !== null) { + $this->cfg->host = $this->cfg->hosts[$key]; + } } if ($opts['user'] !== null) { $this->cfg->host->user = $opts['user'];