Parse arguments to main function.