parse-options.c: turn some die() to BUG()

These two strings are clearly not for the user to see. Reduce the violence in one string while at there. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Nov 10, 2018 at 06:16 UTC 48a5499ef50d4d49ac78e1711535bebf3d5b3cfb
1 file changed +2 -2
parse-options.c
+2 -2
@@ -197,7 +197,7 @@ static int get_value(struct parse_opt_ctx_t *p,
197 return 0;
198
199 default:
200 - die("should not happen, someone must be hit on the forehead");
200 + BUG("opt->type %d should not happen", opt->type);
201 }
202 }
203
@@ -424,7 +424,7 @@ void parse_options_start(struct parse_opt_ctx_t *ctx,
424 ctx->flags = flags;
425 if ((flags & PARSE_OPT_KEEP_UNKNOWN) &&
426 (flags & PARSE_OPT_STOP_AT_NON_OPTION))
427 - die("STOP_AT_NON_OPTION and KEEP_UNKNOWN don't go together");
427 + BUG("STOP_AT_NON_OPTION and KEEP_UNKNOWN don't go together");
428 parse_options_check(options);
429 }
430