nobody needs the --user option
authorChristian Weiske <cweiske@cweiske.de>
Thu, 8 Sep 2016 19:12:41 +0000 (21:12 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 8 Sep 2016 19:23:01 +0000 (21:23 +0200)
src/shpub/Cli.php

index 8ec4acbfea6a0f1431fa5be6fa95283ca0994985..7c6a5f3c70beb9bf19a4e716df9abf2a082db936 100644 (file)
@@ -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(