implement CLI parsing and check task.