Handle IndexError for argument parsing.