diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-09 18:02:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-09 18:02:40 +0200 |
commit | 9bf40e4a91f6a792c3279d9184b67451cf58bf49 (patch) | |
tree | a242a923ec7d309dc488c60f1233fbc91fcbae70 /cli/options.cli | |
parent | bd21176187a55fa7f6e80b5cfe86f5e756971b4f (diff) |
Add --std option with c++{98,11,14} values; use function-static in C++11
This way we can use option descriptions during static initialization (e.g.,
of an Apache module).
Diffstat (limited to 'cli/options.cli')
-rw-r--r-- | cli/options.cli | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/options.cli b/cli/options.cli index 9554d10..0f0d1a9 100644 --- a/cli/options.cli +++ b/cli/options.cli @@ -12,6 +12,8 @@ include <string>; include <vector>; include <cstddef>; +include "option-types.hxx"; + class options { bool --help {"Print usage information and exit."}; @@ -29,6 +31,13 @@ class options "Write the generated files to <dir> instead of the current directory." }; + cxx_version --std = cxx_version::cxx98 + { + "<version>", + "Specify the C++ standard that should be used during compilation. + Valid values are \cb{c++98} (default), \cb{c++11}, and \cb{c++14}." + }; + bool --generate-modifier { "Generate option value modifiers in addition to accessors." |