title: How to call cache:clear command with argumemt within another command - Symfony3
body: <p>I know that I can run a command within another command.
  like this example..</p>
  
  <pre><code>    $command = $this-&gt;getApplication()-&gt;find('cache:clear');
      $arguments = array();
      $input = new ArrayInput($arguments);
      $returnCode = $command-&gt;run($input, $output);
      $text = '';
      if ($returnCode != 0) {
          $text .= 'successfully...';
      }
  
      $output-&gt;writeln($text);
  </code></pre>
  
  <p>But when I trying to run the cache:clear command with their options-</p>
  
  <pre><code>$arguments = array(
          '--env=prod' =&gt; true
      );
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>[Symfony\Component\Console\Exception\InvalidOptionException]
    The "--env=prod" option does not exist.
  </code></pre>
  
  <p>How can I run this command?</p>