Handle a bare numeric token on the command line a bit more gracefully.

This commit is contained in:
Eric S. Raymond 2018-11-11 09:05:03 -05:00
parent ac2dad44bc
commit d5d6a3e02d
3 changed files with 8 additions and 0 deletions

4
main.c
View file

@ -1179,6 +1179,10 @@ Lookup:
command.verb = command.word[0].id;
break;
case NUMERIC: // LCOV_EXCL_LINE
if (!settings.oldstyle) {
sspeak(DONT_KNOW, command.word[0].raw);
goto Lclearobj;
}
default: // LCOV_EXCL_LINE
BUG(VOCABULARY_TYPE_N_OVER_1000_NOT_BETWEEN_0_AND_3); // LCOV_EXCL_LINE
}