diff options
Diffstat (limited to 'builtin/cat-file.c')
-rw-r--r-- | builtin/cat-file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/cat-file.c b/builtin/cat-file.c index 0f6b692df6..1cdd357d52 100644 --- a/builtin/cat-file.c +++ b/builtin/cat-file.c @@ -595,6 +595,8 @@ static int batch_option_callback(const struct option *opt, { struct batch_options *bo = opt->value; + BUG_ON_OPT_NEG(unset); + if (bo->enabled) { return error(_("only one batch option may be specified")); } |