File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments