diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-02 17:06:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-02 17:06:10 +0200 |
commit | 7c83b407648f1ef919218d8965d4c21378910755 (patch) | |
tree | 52f62723ccf07bb59a45737cb2d0fc89ae691f4f /cli/options.ixx | |
parent | 2eb28736a05c7083f2b30b501954a789bbd85f88 (diff) |
Add --generate-parse option
When specified, CLI will generate parse() functions instead of parsing
constructors. This is primarily useful for being able to parse into an
already initialized options class instance, for example, to implement
merging/overriding.
Diffstat (limited to 'cli/options.ixx')
-rw-r--r-- | cli/options.ixx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/options.ixx b/cli/options.ixx index a66312d..c2b9a80 100644 --- a/cli/options.ixx +++ b/cli/options.ixx @@ -240,6 +240,12 @@ generate_specifier () const } inline const bool& options:: +generate_parse () const +{ + return this->generate_parse_; +} + +inline const bool& options:: generate_description () const { return this->generate_description_; |