summaryrefslogtreecommitdiff
path: root/src/ptx.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-06-30 19:43:53 +0200
committerJim Meyering <jim@meyering.net>2007-07-14 19:17:01 +0200
commit1e07a21459421afdbbd0b9cb21a919aa5d938abb (patch)
tree93cafc43d54479f889032cb732ba4800dd77cc07 /src/ptx.c
parent78adb282a743a326ccfb137c537fcc793e1ebb08 (diff)
downloadcoreutils-1e07a21459421afdbbd0b9cb21a919aa5d938abb.tar.xz
Remove long-deprecated options.
* NEWS: Mention this. * src/df.c, src/ls.c: Remove --kilobytes option. * src/du.c: Remove --kilobytes and --megabytes options. * src/who.c: Remove -i and --idle options. * src/ptx.c: Remove --copyright option. Signed-off-by: Jim Meyering <jim@meyering.net>
Diffstat (limited to 'src/ptx.c')
-rw-r--r--src/ptx.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ptx.c b/src/ptx.c
index b4211372c..23b0605ae 100644
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -1,5 +1,5 @@
/* Permuted index for GNU, with keywords in their context.
- Copyright (C) 1990, 1991, 1993, 1998-2006 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1991, 1993, 1998-2007 Free Software Foundation, Inc.
François Pinard <pinard@iro.umontreal.ca>, 1988.
This program is free software; you can redistribute it and/or modify
@@ -1937,7 +1937,6 @@ static const struct option long_options[] =
{
{"auto-reference", no_argument, NULL, 'A'},
{"break-file", required_argument, NULL, 'b'},
- {"copyright", no_argument, NULL, 'C'}, /* Deprecated, remove in 2007. */
{"flag-truncation", required_argument, NULL, 'F'},
{"ignore-case", no_argument, NULL, 'f'},
{"gap-size", required_argument, NULL, 'g'},
@@ -1987,7 +1986,7 @@ main (int argc, char **argv)
setchrclass (NULL);
#endif
- while (optchar = getopt_long (argc, argv, "ACF:GM:ORS:TW:b:i:fg:o:trw:",
+ while (optchar = getopt_long (argc, argv, "AF:GM:ORS:TW:b:i:fg:o:trw:",
long_options, NULL),
optchar != EOF)
{
@@ -2085,11 +2084,6 @@ main (int argc, char **argv)
format_args, format_vals);
case_GETOPT_HELP_CHAR;
- case 'C':
- error (0, 0, _("\
-the --copyright option is deprecated; use --version instead"));
- /* fallthrough */
-
case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS);
}
}