maxlath / wikibase-cli

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

documentation: multiple remove-claim #107

Closed rwst closed 4 years ago

rwst commented 4 years ago

This is wd version 9.2.0. ndm says I have 11.1.0.

ralf@ark:~/wikidata> wd remove-claim 'Q22575158$B58CC590-EE55-4C1A-AAD2-5C7EF37F47E0|Q22575158$42C38464-9464-4F4E-BD58-7AD06C671989'
invalid guid { guid: 'Q22575158$B58CC590-EE55-4C1A-AAD2-5C7EF37F47E0|Q22575158$42C38464-9464-4F4E-BD58-7AD06C671989' }
ralf@ark:~/wikidata> wd remove-claim 'Q22575158$B58CC590-EE55-4C1A-AAD2-5C7EF37F47E0'
{"pageinfo":{"lastrevid":1170652372},"success":1,"claims":["Q22575158$B58CC590-EE55-4C1A-AAD2-5C7EF37F47E0"]}
ralf@ark:~/wikidata> wd remove-claim 'Q22575158$42C38464-9464-4F4E-BD58-7AD06C671989'
{"pageinfo":{"lastrevid":1170652502},"success":1,"claims":["Q22575158$42C38464-9464-4F4E-BD58-7AD06C671989"]}
rwst commented 4 years ago

I see, the documentation is wrong. Don't use the pipe, just multiple arguments. Please fix the docs.