diff options
Diffstat (limited to 'src/getopt.c')
-rw-r--r-- | src/getopt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/getopt.c b/src/getopt.c index fc87ce6..84faa8b 100644 --- a/src/getopt.c +++ b/src/getopt.c @@ -690,6 +690,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) else { if (opterr) + { if (argv[optind - 1][1] == '-') /* --option */ fprintf (stderr, @@ -700,7 +701,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) fprintf (stderr, _("%s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[optind - 1][0], pfound->name); - + } nextchar += strlen (nextchar); optopt = pfound->val; |