Skip to content

Commit 72cd2a5

Browse files
committed
Updated version number to 200.36.4.
Fixed bug with incorrect error message for unknown command-line option.
1 parent aa16369 commit 72cd2a5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

etc/test_options.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
tests => [
148148
{ cmd => "$TECO -z", result => 'Unknown option' },
149149
{ cmd => "$TECO --foo", result => 'Unknown option' },
150+
{ cmd => 'teco --baz', result => 'Unknown option' },
150151
],
151152
},
152153
{

include/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ enum release_version ///< TECO release version numbers
3434
{
3535
major_version = 200,
3636
minor_version = 36,
37-
patch_version = 3
37+
patch_version = 4
3838
};
3939

4040
#endif // !defined(_VERSION_H)

src/option_sys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ static void parse_options(
581581
opterr = 0; // Suppress any error messages
582582

583583
int c; // Current option
584-
int lastind = optind; // Used to analyze errors (see below)
584+
int lastind = 1; // Used to analyze errors (see below)
585585

586586
while ((c = getopt_long(argc, (char * const *)argv,
587587
optstring, long_options, NULL)) != -1)

0 commit comments

Comments
 (0)