If you have no duty to report and the officer pulled his gun out because the driver's shirt rode up revealing he had a gun, then the officer was wrong. There is no justifiable reason to do that absent something you aren't telling us.
I'm in a duty to notify state. You notify, hand me license, registration, permit. I'll check you out, write/don't write a ticket and you'll be on your way.