Allow setting custom persister as a normal option
gioele opened this issue · comments
Currently custom persisters must be registered by called the register_persister
function on an existing VCR object, for example: my_vcr = vcr.VCR(); my_vcr.register_persister(MyPersister)
.
From an ergonomics point of view, it would be better if persisters could be treated just like any other option.
This would make it possible to set a custom persister when using function decorators @vcr.use_cassette("foo", mode="none", persister=MyPersister)
.