command line parser for main application