code: public function buildOptions(): array
      {
          $options = [];
          foreach ($this->options as $option => $values) {
              foreach ((array) $values as $value) {
                  // Render the option.
                  $prefix = strlen($option) !== 1 ? '--' : '-';
                  $options[] = $prefix . $option;
  
                  // Render apend the value if the option isn't a flag.
                  if ($value !== true) {
                      $options[] = $value;
                  }
              }
          }
  
          return $options;
      }
docs: Builds the command line options for use in the Git command.
  
  @return mixed[]