dxdiag: Add basic command line parsing.

Based on a patch by Dan Kegel.
1 file changed