title: AWS S3 LS --include: Unknown options
body: <p>I'm on the newest AWS CLI version - 2.7.24</p>
  <p>Trying to list all the files from all the folders I have (with a certain extension) on this path:</p>
  <p>s3://myfiles/folders/</p>
  <p>&quot;folders&quot; have this structure:</p>
  <pre><code>folder1
   - item
   - item
  folder2
   - item
   - item
  folder3
   - item
   - item
  </code></pre>
  <p>My aws cli command is:</p>
  <p><strong>aws s3 ls --recursive s3://myfiles/folders/</strong> -&gt; Which works fine. But when I add --include, it doesn't work. Error: unknown options</p>
  <p>Example:
  aws s3 ls --recursive --exclude * --include &quot;*.txt&quot; s3://myfiles/folders/</p>
  <p><strong>Error:</strong> Unknown options: --exclude, <strong></strong>, --include,*.txt</p>
  <p>I did pip install -U awscli</p>
  <p>I tried a lot of internet and stackoverflow stuff but nothing worked.</p>
  <p>Any ideas?</p>