/* head -- output first part of file(s)
- Copyright (C) 89, 90, 91, 1995-2005 Free Software Foundation, Inc.
+ Copyright (C) 89, 90, 91, 1995-2006 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
break;
default:
- error (0, 0, _("unrecognized option `-%c'"), *a);
+ error (0, 0, _("invalid trailing option -- %c"), *a);
usage (EXIT_FAILURE);
}
}
argc--;
}
- while ((c = getopt_long (argc, argv, "c:n:qv", long_options, NULL)) != -1)
+ while ((c = getopt_long (argc, argv, "c:n:qv0123456789", long_options, NULL))
+ != -1)
{
switch (c)
{
case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS);
default:
+ if (ISDIGIT (c))
+ error (0, 0, _("invalid trailing option -- %c"), c);
usage (EXIT_FAILURE);
}
}