sotoki icon indicating copy to clipboard operation
sotoki copied to clipboard

Move from multiple `--tag` flags to one single `--tags` flag

Open benoit74 opened this issue 1 year ago • 3 comments

Currently, when the user wants to specify multiple ZIM tags, he has to specify multiple time the --tag parameter like in sotoki --tag "Quality Assurance" --tag "Another TAG"

This kind of this is not supported by the Zimfarm and is not in line with other scrapers behavior.

We hence want to move to one single --tags flag which might contain a CSV value like in sotoki --tags "Quality Assurance,Another TAG". Commas are not expected to be used in tag values.

NOTA: this is a breaking API change ... but I'm not sure this is really widely used anyway, so I suggest to still make it into 2.2.0 (instead of creating a 3.0.0).

benoit74 avatar May 13 '24 07:05 benoit74

As much as I don't like it, we made a promise in CHANGELOG that we'd respect semantic versioning so 3.0.0

rgaudin avatar May 13 '24 08:05 rgaudin

Please don't use CSV, we already have ; separated in the ZIM. Makes more sense to use the same format.

rgaudin avatar May 13 '24 08:05 rgaudin

OK, let's go for 3.0.0 and ; then 😉

benoit74 avatar May 13 '24 08:05 benoit74

Fixed in https://github.com/openzim/sotoki/pull/351

benoit74 avatar Dec 04 '25 12:12 benoit74