diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-04-10 10:28:20 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-10 10:28:20 +0300 |
commit | 62c0fd46a875050e904831a73ef4375ed26cfaf6 (patch) | |
tree | 9bb09418c52e02a93f55c62826574ad26ac20f5b /builtin/update-index.c | |
parent | 69d71ec4433d21f464d83b529432856da2387bba (diff) | |
parent | 3bb0923f06c55ea44569f547cefa9e1a59069ff2 (diff) |
Merge branch 'ps/contains-id-error-message'
"git tag --contains no-such-commit" gave a full list of options
after giving an error message.
* ps/contains-id-error-message:
parse-options: do not show usage upon invalid option value
Diffstat (limited to 'builtin/update-index.c')
-rw-r--r-- | builtin/update-index.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/update-index.c b/builtin/update-index.c index 9625d1e10a..10d070a76f 100644 --- a/builtin/update-index.c +++ b/builtin/update-index.c @@ -1059,6 +1059,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix) break; switch (parseopt_state) { case PARSE_OPT_HELP: + case PARSE_OPT_ERROR: exit(129); case PARSE_OPT_NON_OPTION: case PARSE_OPT_DONE: |