A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1445 below:

[core] Allow CLI to take globs as parameters · Issue #1445 · pmd/pmd · GitHub

From CLI it's not possible to e.g. execute PMD like so:

pmd -R rulesets/java/quickstart.xml  -d pmd-*/src/main/java/

Because the shell expands the glob pattern to a space-separated list of paths, whereas the -dir option expects a comma-separated list of files. (Which is quite weird tbh, file names may contain commas, it makes us our responsibility to parse it, and most CLI programs take space separated values when expecting several arguments.)

We could make the -d option varargs with JCommander. But we'd need to split the arg on commas if there's a single one to make it backwards compatible. Or introduce a new option that is varargs and doesn't interpret commas, and deprecate the -d option.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4