diff --git a/src/main.c b/src/main.c index 32e32661..81843dc6 100644 --- a/src/main.c +++ b/src/main.c @@ -62,6 +62,8 @@ int main(int argc, char *argv[]) } else /* unsupported options */ abort(); + } else if (argv[i][0] == '-') { + fatal("Unidentified option"); } else in = argv[i]; } diff --git a/src/parser.c b/src/parser.c index 42b97087..66b8fe06 100644 --- a/src/parser.c +++ b/src/parser.c @@ -709,8 +709,8 @@ void read_full_var_decl(var_t *vd, int anon, int is_param) type_t *type = find_type(type_name, find_type_flag); if (!type) { - printf("Could find type %s%s\n", find_type_flag == 2 ? "struct " : "", - type_name); + printf("Could not find type %s%s\n", + find_type_flag == 2 ? "struct " : "", type_name); abort(); }