summaryrefslogtreecommitdiff
path: root/cli/options.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-02 17:06:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-02 17:06:10 +0200
commit7c83b407648f1ef919218d8965d4c21378910755 (patch)
tree52f62723ccf07bb59a45737cb2d0fc89ae691f4f /cli/options.cli
parent2eb28736a05c7083f2b30b501954a789bbd85f88 (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.cli')
-rw-r--r--cli/options.cli7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/options.cli b/cli/options.cli
index 28a4ee4..7f8e2dc 100644
--- a/cli/options.cli
+++ b/cli/options.cli
@@ -40,6 +40,13 @@ class options
on the command line."
};
+ bool --generate-parse
+ {
+ "Generate \cb{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."
+ };
+
bool --generate-description
{
"Generate the option description list that can be examined at runtime."