1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-28 19:39:52 +02:00

Remove option: --max-consecutive-size-changes=N.

Doesn't seem useful.
(usage): Remove description.
This commit is contained in:
Jim Meyering
2000-04-16 16:03:34 +00:00
parent 56dc5651a4
commit a423a1374f
+1 -22
View File
@@ -215,8 +215,6 @@ static struct option const long_options[] =
{"follow", optional_argument, NULL, LONG_FOLLOW_OPTION},
{"lines", required_argument, NULL, 'n'},
{"max-unchanged-stats", required_argument, NULL, MAX_UNCHANGED_STATS_OPTION},
{"max-consecutive-size-changes", required_argument, NULL,
MAX_CONSECUTIVE_SIZE_CHANGES_OPTION},
{"pid", required_argument, NULL, PID_OPTION},
{"quiet", no_argument, NULL, 'q'},
{"retry", no_argument, NULL, RETRY_OPTION},
@@ -253,12 +251,6 @@ With no FILE, or when FILE is -, read standard input.\n\
-f, --follow, and --follow=descriptor are\n\
equivalent\n\
-n, --lines=N output the last N lines, instead of the last %d\n\
--max-consecutive-size-changes=N\n\
with --follow=name, reopen a FILE after N\n\
(default %d) consecutive size changes to see if\n\
it has been unlinked or renamed\n\
(this is the unusual case where a log file\n\
continues to be written to after rotation)\n\
--max-unchanged-stats=N\n\
with --follow=name, reopen a FILE which has not\n\
changed size after N (default %d) iterations\n\
@@ -290,8 +282,7 @@ recreated by some other program.\n\
\n\
"),
DEFAULT_N_LINES, DEFAULT_N_LINES,
DEFAULT_MAX_N_UNCHANGED_STATS_BETWEEN_OPENS,
DEFAULT_MAX_N_CONSECUTIVE_SIZE_CHANGES
DEFAULT_MAX_N_UNCHANGED_STATS_BETWEEN_OPENS
);
puts (_("\nReport bugs to <bug-textutils@gnu.org>."));
}
@@ -1426,18 +1417,6 @@ parse_options (int argc, char **argv,
}
break;
case MAX_CONSECUTIVE_SIZE_CHANGES_OPTION:
/* --max-consecutive-size-changes=N */
if (xstrtoul (optarg, NULL, 10,
&max_n_consecutive_size_changes_between_opens, "")
!= LONGINT_OK)
{
error (EXIT_FAILURE, 0,
_("%s: invalid maximum number of consecutive size changes"),
optarg);
}
break;
case PID_OPTION:
{
strtol_error s_err;