Switch to arg parser.

Resolves #13294
Merge pull request #13370 from cachedout/13294

Switch to arg parser.