-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more flexibility to "languages" flag #1111
base: main
Are you sure you want to change the base?
Conversation
With this, the flag supports: - "default" to append the default set of languages, instead of overriding it entirely, e.g. --languages=default,tlh means all default languages *plus* Klingon. - "-lang" to exclude languages, e.g. --languages=default,-en means all default languages *except* English. - "*" to include all languages not specified. This can be combined with "-lang". e.g. --languages=*,-jbo means all languages *except* Lojban.
Quality Gate passedIssues Measures |
Full logs: https://github.com/onthegomap/planetiler/actions/runs/11999419714 |
Cool! Thanks for adding. Fixes #1043 |
for (String language : languages) { | ||
if (language.equals("*")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor but what about supporting "all"
instead of or in addition to "*"
so that you don't need to worry about bash expanding it as a wildcard?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, but all
is a language code assigned to https://en.wikipedia.org/wiki/Allar_language. Any better ideas for a keyword?
With this, the flag supports: