]> cygwin.com Git - cygwin-apps/setup.git/commit - libgetopt++/src/OptionSet.cc
Implement paired boolean options
authorJon Turney <jon.turney@dronecode.org.uk>
Tue, 17 Mar 2020 14:27:02 +0000 (14:27 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Wed, 18 Mar 2020 22:20:44 +0000 (22:20 +0000)
commit8effde7afc285895e7a4d40a944ab2a7b9e51af1
tree201ff44e40bbf54541816c5c32bae45a0e27bf14
parent9a7997b94b5e9cf382e5094f91163f76b64ccb0f
Implement paired boolean options

Add some infrastructure for options which may appear with multiple
prefixes.

Add an implementation of paired boolean options like '--enable-foo' and
'--disable-foo', or '--bar' and '--no-bar'.

Add/fix tests
12 files changed:
libgetopt++/include/getopt++/BoolOption.h
libgetopt++/include/getopt++/Option.h
libgetopt++/include/getopt++/OptionSet.h
libgetopt++/include/getopt++/StringArrayOption.h
libgetopt++/include/getopt++/StringOption.h
libgetopt++/src/BoolOption.cc
libgetopt++/src/Option.cc
libgetopt++/src/OptionSet.cc
libgetopt++/src/StringArrayOption.cc
libgetopt++/src/StringOption.cc
libgetopt++/tests/BoolOptionTest.cc
libgetopt++/tests/OptionSet.cc
This page took 0.047563 seconds and 5 git commands to generate.