parse-options: add OPT_STRING_LIST helper
commitc8ba163916554e9ffd3ce8cb2beeff003d90c0c3
authorJeff King <peff@peff.net>
Thu, 9 Jun 2011 15:55:23 +0000 (9 11:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jun 2011 18:25:20 +0000 (22 11:25 -0700)
treeae035aa6494b6b852d3ddf4e2989a35900a6f0dc
parentf77bccaeba7a4c542e9b89d144af74bddd36fd08
parse-options: add OPT_STRING_LIST helper

This just adds repeated invocations of an option to a list
of strings. Using the "--no-<var>" form will reset the list
to empty.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c
parse-options.h
t/t0040-parse-options.sh
test-parse-options.c