Return more appropriate error if no task is given to CLI.