Boyfriend meeting my best friend for first time...

My best girl friend was visiting for the first time and my when she came to the door, my boyfriend went straight to our room acting like he was going to take a nap, taking off his pants, I told him to come out and say hi to my friend real quick since they never met, he said "ugh. Do I have to put pants on?" I said "yeah." and he comes out as he's pulling up his jeans like at his knees, my friend saw his underwear and him zipping up his pants. As he was talking to my friend he like stretched out and flexed his arms a little, trying to be subtle but I noticed it. I was so angry but let it slide. How would you feel??