msgconv, msgen, msgfilter, msggrep, msgmerge: The option '-n' takes no argument.

This was a regression from 2014-03-24.

* gettext-tools/src/msgconv.c (main): Change "n:" to "n" in getopt_long
argument.
* gettext-tools/src/msgen.c (main): Likewise.
* gettext-tools/src/msgfilter.c (main): Likewise.
* gettext-tools/src/msggrep.c (main): Likewise.
* gettext-tools/src/msgmerge.c (main): Likewise.
This commit is contained in:
Bruno Haible 2025-06-28 02:12:58 +02:00
parent b719e5bfd2
commit 8caa0b51ba
5 changed files with 5 additions and 5 deletions

View File

@ -130,7 +130,7 @@ main (int argc, char **argv)
output_file = NULL;
input_file = NULL;
while ((opt = getopt_long (argc, argv, "D:eEFhin:o:pPst:Vw:", long_options,
while ((opt = getopt_long (argc, argv, "D:eEFhino:pPst:Vw:", long_options,
NULL))
!= EOF)
switch (opt)

View File

@ -132,7 +132,7 @@ main (int argc, char **argv)
output_file = NULL;
while ((opt = getopt_long (argc, argv,
"D:eEFhin:o:pPsVw:",
"D:eEFhino:pPsVw:",
long_options, NULL)) != EOF)
switch (opt)
{

View File

@ -166,7 +166,7 @@ main (int argc, char **argv)
/* The '+' in the options string causes option parsing to terminate when
the first non-option, i.e. the subprogram name, is encountered. */
while ((opt = getopt_long (argc, argv, "+D:EFhi:n:o:pPsVw:", long_options,
while ((opt = getopt_long (argc, argv, "+D:EFhi:no:pPsVw:", long_options,
NULL))
!= EOF)
switch (opt)

View File

@ -191,7 +191,7 @@ main (int argc, char **argv)
gt->case_insensitive = false;
}
while ((opt = getopt_long (argc, argv, "CD:e:Ef:FhiJKM:n:N:o:pPTvVw:X",
while ((opt = getopt_long (argc, argv, "CD:e:Ef:FhiJKM:nN:o:pPTvVw:X",
long_options, NULL))
!= EOF)
switch (opt)

View File

@ -218,7 +218,7 @@ main (int argc, char **argv)
output_file = NULL;
color = NULL;
while ((opt = getopt_long (argc, argv, "C:D:eEFhimn:No:pPqsUvVw:",
while ((opt = getopt_long (argc, argv, "C:D:eEFhimnNo:pPqsUvVw:",
long_options, NULL))
!= EOF)
switch (opt)