rem: error (0, 0, _("only one argument may be specified when using --check"));
add: error (0, 0, _("extra operand %s"), quote (argv[optind + 1])); fprintf (stderr, "%s\n", _("Only one operand may be specified when using --check."));
context: main (int argc, char **argv){  unsigned char bin_buffer[MAX_DIGEST_BIN_BYTES];  int do_check = 0;  int opt;  char **string = NULL;  size_t n_strings = 0;  size_t err = 0;  int file_type_specified = 0;#if O_BINARY  /* Binary is default on MSDOS, so the actual file contents     are used in computation.  */  int binary = 1;#else  /* Text is default of the Plumb/Lankester format.  */  int binary = 0;#endif  /* Setting values of global variables.  */  program_name = argv[0];  setlocale (LC_ALL, "");  bindtextdomain (PACKAGE, LOCALEDIR);  textdomain (PACKAGE);  atexit (close_stdout);  while ((opt = getopt_long (argc, argv, "bctw", long_options, NULL)) != -1)    switch (opt)      {      case 0:			/* long option */	break;      case 1: /* --string */	{	  if (string == NULL)	    string = (char **) xmalloc ((argc - 1) * sizeof (char *));	  if (optarg == NULL)	    optarg = "";	  string[n_strings++] = optarg;	}	break;      case 'b':	file_type_specified = 1;	binary = 1;	break;      case 'c':	do_check = 1;	break;      case 2:	status_only = 1;	warn = 0;	break;      case 't':	file_type_specified = 1;	binary = 0;	break;      case 'w':	status_only = 0;	warn = 1;	break;      case_GETOPT_HELP_CHAR;      case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS);      default:	usage (EXIT_FAILURE);      }  min_digest_line_length = MIN_DIGEST_LINE_LENGTH (algorithm);  digest_hex_bytes = DIGEST_HEX_BYTES (algorithm);  if (file_type_specified && do_check)    {      error (0, 0, _("the --binary and --text options are meaningless when \verifying checksums"));      usage (EXIT_FAILURE);    }  if (n_strings > 0 && do_check)    {      error (0, 0,	     _("the --string and --check options are mutually exclusive"));      usage (EXIT_FAILURE);    }  if (status_only && !do_check)    {      error (0, 0,       _("the --status option is meaningful only when verifying checksums"));      usage (EXIT_FAILURE);    }  if (warn && !do_check)    {      error (0, 0,       _("the --warn option is meaningful only when verifying checksums"));      usage (EXIT_FAILURE);    }  if (n_strings > 0)    {      size_t i;      if (optind < argc)	{	  error (0, 0, _("no files may be specified when using --string"));	  usage (EXIT_FAILURE);	}      for (i = 0; i < n_strings; ++i)	{	  size_t cnt;	  if (algorithm == ALG_MD5)	    md5_buffer (string[i], strlen (string[i]), bin_buffer);	  else	    sha_buffer (string[i], strlen (string[i]), bin_buffer);	  for (cnt = 0; cnt < (digest_hex_bytes / 2); ++cnt)	    printf ("%02x", bin_buffer[cnt]);	  printf ("  \"%s\"\n", string[i]);	}    }  else if (do_check)    {      if (optind + 1 < argc)	{	  error (0, 0,		 _("only one argument may be specified when using --check"));	  usage (EXIT_FAILURE);	}      err = digest_check ((optind == argc) ? "-" : argv[optind],			  DIGEST_STREAM (algorithm));    }  else    {      if (optind == argc)	argv[argc++] = "-";      for (; optind < argc; ++optind)	{	  int fail;	  char *file = argv[optind];	  fail = digest_file (file, binary, bin_buffer,			      DIGEST_STREAM (algorithm));	  err |= fail;	  if (!fail)	    {	      size_t i;	      /* Output a leading backslash if the file name contains		 a newline or backslash.  */	      if (strchr (file, '\n') || strchr (file, '\\'))		putchar ('\\');	      for (i = 0; i < (digest_hex_bytes / 2); ++i)		printf ("%02x", bin_buffer[i]);	      putchar (' ');	      if (binary)		putchar ('*');	      else		putchar (' ');	      /* Translate each NEWLINE byte to the string, "\\n",		 and each backslash to "\\\\".  */	      for (i = 0; i < strlen (file); ++i)		{		  switch (file[i])		    {		    case '\n':		      fputs ("\\n", stdout);		      break;		    case '\\':		      fputs ("\\\\", stdout);		      break;		    default:		      putchar (file[i]);		      break;		    }		}	      putchar ('\n');	    }	}    }  if (have_read_stdin && fclose (stdin) == EOF)    error (EXIT_FAILURE, errno, _("standard input"));  exit (err == 0 ? EXIT_SUCCESS : EXIT_FAILURE);}