My cat LOVES denim. Should I make a denim cat scratcher?

I have a cat that loves to use your leg as a scratching post, but only if you’re wearing jeans. If I bought some old denim from a thrift store, do you think I could cover a scratching post in it, and more importantly, would it potentially stop my cat from using my legs as a scratching post?