summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-06 08:49:37 +0000
committerJim Meyering <jim@meyering.net>2003-09-06 08:49:37 +0000
commit93b183e3adf0bd7ecf034fcfe14f5f29e2d61c05 (patch)
tree96138904c648f8d10d9bb137824e8a29f883bb3b
parent00b25daa962b636e838920159264c4a05d6c8cd6 (diff)
downloadcoreutils-93b183e3adf0bd7ecf034fcfe14f5f29e2d61c05.tar.xz
(enum): Add ALLOW_MISSING_OPTION.
(parse_options): Give a diagnostic for (but still accept) the deprecated --allow-missing option.
-rw-r--r--src/tail.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/tail.c b/src/tail.c
index c89f5a2d2..66d848101 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -191,6 +191,7 @@ static bool presume_input_pipe;
enum
{
RETRY_OPTION = CHAR_MAX + 1,
+ ALLOW_MISSING_OPTION, /* deprecated, FIXME: remove in late 2004 */
MAX_UNCHANGED_STATS_OPTION,
/* FIXME: remove this in 2001, unless someone can show a good
@@ -204,9 +205,8 @@ enum
static struct option const long_options[] =
{
- /* --allow-missing is deprecated; use --retry instead
- FIXME: remove it some day */
- {"allow-missing", no_argument, NULL, RETRY_OPTION},
+ /* --allow-missing is deprecated; use --retry instead */
+ {"allow-missing", no_argument, NULL, ALLOW_MISSING_OPTION},
{"bytes", required_argument, NULL, 'c'},
{"follow", optional_argument, NULL, LONG_FOLLOW_OPTION},
{"lines", required_argument, NULL, 'n'},
@@ -1555,6 +1555,10 @@ parse_options (int argc, char **argv,
follow_mode_string, follow_mode_map);
break;
+ case ALLOW_MISSING_OPTION:
+ error (0, 0,
+ _("the --allow-missing option is deprecated; use --retry instead"));
+ /* fall through */
case RETRY_OPTION:
reopen_inaccessible_files = 1;
break;