From: Nguyễn Thái Ngọc Duy Date: Fri, 9 Feb 2018 11:01:40 +0000 (+0700) Subject: parse-options: support --git-completion-helper X-Git-Tag: v2.17.0-rc0~7^2~44 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b9d7f4b4dbebea34ca8d02be8889884fc3fb90c7?ds=inline;hp=b9d7f4b4dbebea34ca8d02be8889884fc3fb90c7 parse-options: support --git-completion-helper This option is designed to be used by git-completion.bash. For many simple cases, what we do in there is usually __gitcomp "lots of completion options" which has to be manually updated when a new user-visible option is added. With support from parse-options, we can write __gitcomp "$(git command --git-completion-helper)" and get that list directly from the parser for free. Dangerous/Unpopular options could be hidden with the new "NOCOMPLETE" flag. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---