Skip to content

Commit

Permalink
Updated version number to 200.36.4.
Browse files Browse the repository at this point in the history
Fixed bug with incorrect error message for unknown command-line option.
  • Loading branch information
fpjohnston committed Jun 18, 2023
1 parent aa16369 commit 72cd2a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions etc/test_options.pl
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
tests => [
{ cmd => "$TECO -z", result => 'Unknown option' },
{ cmd => "$TECO --foo", result => 'Unknown option' },
{ cmd => 'teco --baz', result => 'Unknown option' },
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion include/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ enum release_version ///< TECO release version numbers
{
major_version = 200,
minor_version = 36,
patch_version = 3
patch_version = 4
};

#endif // !defined(_VERSION_H)
2 changes: 1 addition & 1 deletion src/option_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ static void parse_options(
opterr = 0; // Suppress any error messages

int c; // Current option
int lastind = optind; // Used to analyze errors (see below)
int lastind = 1; // Used to analyze errors (see below)

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

0 comments on commit 72cd2a5

Please sign in to comment.