cortex-tools icon indicating copy to clipboard operation
cortex-tools copied to clipboard

running "rules sync" without any parameters deletes all rules.

Open simonc6372 opened this issue 3 years ago • 0 comments

Hi, If cortextool rules sync is ran without parameters for rule-files or rule-dirs then it assumes a null set of rules and deletes all the rules on the destination ruler without further warning.

I would expect if it was told to do a rules sync, then it should have either a rule-files, or a rule-dirs parameter and if one or other is not set, it should exit with an error. If deleting all rules is the desired behaviour, then this should happen with either parameter set to /dev/null

Thanks.

simonc6372 avatar May 06 '21 10:05 simonc6372