sample code for command line args parse