Word-Case headers; too many applications break without it
[shpub.git] / src / shpub / Cli.php
index 62f824ee92546455cb309219983b63372d4f3ee1..f807d329712a0ee00ea27dd94360a1835c7daf30 100644 (file)
@@ -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(