Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git.c: add hidden option --list-parseopt-builtins
[gitweb.git]
/
parse-options.c
diff --git
a/parse-options.c
b/parse-options.c
index 29f4defdd6f2a85604d429d0278e0997378077b2..979577ba2c7a045ddd098f3bfb5cfb96706599d3 100644
(file)
--- a/
parse-options.c
+++ b/
parse-options.c
@@
-459,6
+459,8
@@
static int show_gitcomp(struct parse_opt_ctx_t *ctx,
default:
break;
}
+ if (opts->flags & PARSE_OPT_COMP_ARG)
+ suffix = "=";
printf(" --%s%s", opts->long_name, suffix);
}
fputc('\n', stdout);