command line argument parsing in front end