rwnx / pynonymizer

A universal tool for translating sensitive production database dumps into anonymized copies.
https://pypi.org/project/pynonymizer/
MIT License
105 stars 38 forks source link

--skip-steps option throws error when multiple steps are specified #173

Open easybi-gl opened 2 months ago

easybi-gl commented 2 months ago

Describe the bug

When using the --skip-steps CLI option in Pynonymizer, specifying more than one step causes the command to fail, throwing an error instead of skipping the intended steps. The option works correctly with a single step, but fails when multiple steps are listed.

To Reproduce

Run the pynonymizer command with skip steps option specified: --skip-steps CREATE_DB DROP_DB. This produces the following error: Got unexpected extra arguments (DROP_DB])

Expected behaviour

The --skip-steps option should allow multiple steps to be specified without throwing an error. The specified steps (e.g., CREATE_DB, DROP_DB) should be successfully skipped, and the remaining process should execute as expected.

rwnx commented 2 months ago

I can't test right now, but I think the usage for that option is to repeat the option:

Is there an error in the docs somewhere, or a regression in behaviour?

--skip_steps CREATE_DB --skip_steps DROP_DB