Modify API to access command line arguments in a task