Checking the getopt error for displaying the right message