code: protected function parseCommandArguments()
      {
          $this->path = $this->argument('path');
          if (! is_dir($this->path) || ! is_writable($this->path)) {
              throw new \InvalidArgumentException("Path '$this->path' doesn't exist or is not writable.");
          }
  
          $this->state = strtolower($this->argument('state'));
          if (! in_array($this->state, ['ready', 'buried', 'delayed'])) {
              throw new \InvalidArgumentException("Invalid state '$this->state'.");
          }
  
          if ($this->argument('count')) {
              if (false === ($this->count = filter_var($this->argument('count'), FILTER_VALIDATE_INT, ['options' => ['min_range' => 1]]))) {
                  throw new \InvalidArgumentException('Count should be a positive integer.');
              }
          }
      }
docs: {@inheritdoc}