git.cweiske.de
/
shpub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Word-Case headers; too many applications break without it
[shpub.git]
/
src
/
shpub
/
Cli.php
diff --git
a/src/shpub/Cli.php
b/src/shpub/Cli.php
index 62f824ee92546455cb309219983b63372d4f3ee1..f807d329712a0ee00ea27dd94360a1835c7daf30 100644
(file)
--- 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 {
$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'];
}
if ($opts['user'] !== null) {
$this->cfg->host->user = $opts['user'];
@@
-100,7
+105,7
@@
class Cli
{
$optParser = new \Console_CommandLine();
$optParser->description = 'shpub';
{
$optParser = new \Console_CommandLine();
$optParser->description = 'shpub';
- $optParser->version = '0.0.
0
';
+ $optParser->version = '0.0.
2
';
$optParser->subcommand_required = true;
$optParser->addOption(
$optParser->subcommand_required = true;
$optParser->addOption(