X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/e4bedda9ac3854ceb3d7b88a83155558e9ea6062..4a829af677ff7545a3578bb0e93786663c9203f3:/src/shpub/Cli.php diff --git a/src/shpub/Cli.php b/src/shpub/Cli.php index 62f824e..f807d32 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']; @@ -100,7 +105,7 @@ class Cli { $optParser = new \Console_CommandLine(); $optParser->description = 'shpub'; - $optParser->version = '0.0.0'; + $optParser->version = '0.0.2'; $optParser->subcommand_required = true; $optParser->addOption(