How is the simile used in this sentence?
The wind blew wildly, forcing the flag to snap to attention like a soldier.
A. To suggest that the wind was going off to war
B. To suggest that the wind was careless
C. To suggest that the flag felt a sense a pride
D. To suggest that the flag straightened out quickly