Have a Bone to Pick (with Someone)

What does the idiom “have a bone to pick (with someone)” mean?

Definition: To want to discuss something someone has done that has angered or annoyed you.

Example: I have a bone to pick with you—you went home and left me to do all the work on the sales brochure.