Nixinova / LinguistJS

Analyse and list all languages used in a folder. Implementation of and powered by GitHub's Linguist.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLI --ignored-files behavior differs from readme

AssBackwards opened this issue · comments

Greetings!

I've only used this package from the CLI and I have discovered that --ignoredFiles only seems to take one blob. However, I can specify --ignoredFiles multiple times to specify multiple blobs.

I'm using PowerShell and have not tried bash.

I found that this does not work:

linguist-js.ps1 --offline --json --analyze . --quick --ignoredFiles "*.txt *.xml"

but this does work:

linguist-js.ps1 --offline --json --analyze . --quick --ignoredFiles "*.txt --ignoredFiles *.xml"

I'd like to update the readme to reflect this.

You're not meant to pass it as a single string, it's meant to be a plain list:

  • linguist -a . --ignoredFiles "*.txt *.json"
  • linguist -a . --ignoredFiles *.txt *.json

But yes what you have suggested does also work. I'll update the readme to include both ways.