git.cweiske.de
/
shpub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c6c03
)
nobody needs the --user option
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 8 Sep 2016 19:12:41 +0000
(21:12 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 8 Sep 2016 19:23:01 +0000
(21:23 +0200)
src/shpub/Cli.php
patch
|
blob
|
history
diff --git
a/src/shpub/Cli.php
b/src/shpub/Cli.php
index 8ec4acbfea6a0f1431fa5be6fa95283ca0994985..7c6a5f3c70beb9bf19a4e716df9abf2a082db936 100644
(file)
--- a/
src/shpub/Cli.php
+++ b/
src/shpub/Cli.php
@@
-73,9
+73,6
@@
class Cli
$this->cfg->host = $this->cfg->hosts[$key];
}
}
- if ($opts['user'] !== null) {
- $this->cfg->host->user = $opts['user'];
- }
$this->cfg->setDebug($opts['debug']);
return $res;
@@
-107,17
+104,6
@@
class Cli
'default' => null,
)
);
- $optParser->addOption(
- 'user',
- array(
- 'short_name' => '-u',
- 'long_name' => '--user',
- 'description' => 'User URL',
- 'help_name' => 'URL',
- 'action' => 'StoreString',
- 'default' => null,
- )
- );
$optParser->addOption(
'debug',
array(