From 6b2e66473831f8c9aab67a06fe5a86cddeda9acc Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 3 Dec 2016 18:46:57 -0800 Subject: [PATCH] WIP --- main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 8691419..5129602 100644 --- a/main.c +++ b/main.c @@ -52,14 +52,13 @@ int main(int argc, char *argv[]) { flags |= FLAG_FONT_TAGS; break; default: - abort(); - break; + return 1; } } if (optind == argc) { - fprintf(stderr, "dictionary must be provided provided\n"); - abort(); + fprintf(stderr, "%s: dictionary path must be provided provided\n", argv[0]); + return 1; } dict_path = argv[optind];