Catch condition in optparser where a flag like -v is passed but no targets are passed in.
Merge pull request #8020 from cachedout/develop

Catch condition in optparser where a flag like -v is passed but no targe...