1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2026-10-24 02:08:57 +03:00

fmt: improve --goal error message

* src/fmt.c (main): Since -w and -g can both be specified,
provide a distinguishing validation message for --goal.

Link: https://github.com/coreutils/coreutils/pull/364
This commit is contained in:
Devel
2026-10-06 14:58:20 +03:00
committed by Pádraig Brady
parent b9776257e8
commit 329e1fc3f4

View File

@@ -413,7 +413,7 @@ main (int argc, char **argv)
{
/* Limit goal_width to max_width. */
goal_width = xdectoumax (goal_width_option, 0, max_width, "",
_("invalid width"), 0);
_("invalid goal"), 0);
if (max_width_option == NULL)
max_width = goal_width + 10;
}