Parse arguments and call requested function.