Nixinova / LinguistJS

Analyse and list all languages used in a folder. Implementation of and powered by GitHub's Linguist.
ISC License
39 stars 12 forks source link

CLI --ignored-files behavior differs from readme #22

Closed AssBackwards closed 1 year ago

AssBackwards commented 1 year ago

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.

Nixinova commented 1 year ago

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

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