Hmm...ours do the same thing but it doesn't hurt. If you file their nails after you clip them, they're rounded and don't cause your skin any pain (either that or we have leather skin), I don't know.
If it's the action you don't like, and not just the pain to your legs...then I would follow Jilly's advice.