code: protected function parseArguments()
      {
          $this->parseConnection($this->option('connection'));
  
          if ($this->option('host')) {
              $this->host = $this->option('host');
          }
  
          if ($this->option('port')) {
              $this->port = (int) $this->option('port');
          }
  
          $this->parseCommandArguments();
      }
docs: Generic logic for reading ang validating command's arguments and options.