maxlath / wikibase-cli

read and edit a Wikibase instance from the command line
MIT License
226 stars 24 forks source link

Don't fill in from other languages with wd label #65

Closed antifa-ev closed 5 years ago

antifa-ev commented 5 years ago

I was using wd label --lang XX and was surprised to get a Chinese text at https://www.wikidata.org/wiki/Q15726039

How can I disallow the automatic fill-in from other languages?

maxlath commented 5 years ago

thank you for opening this issue! updated behavior in v7.0.3: when a --lang option is specified, it doesn't fallback on other languages

antifa-ev commented 5 years ago

@maxlath Thanks! But the "no output found" string is another type of output (stderr instead of stdout?) so it's not getting piped to file with my existing scripts.

maxlath commented 5 years ago

no result found is indeed output to stderr. You can hide it by redirecting stderr: wd label Q1103345 --lang uk 2>/dev/null