Used by examples app to parse command line arguments.