summaryrefslogtreecommitdiff
path: root/cli/options.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-02 15:18:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-02 15:18:11 +0200
commit2eb28736a05c7083f2b30b501954a789bbd85f88 (patch)
tree9cd38c69d7ce26d45e4180f1cca8808f54309f7f /cli/options.cli
parent957fd18c38e3bb1c9c489b40a0cbdf865e821294 (diff)
Add --short-usage option
When combined with --long-usage, it makes CLI generate both short and long usage printing code.
Diffstat (limited to 'cli/options.cli')
-rw-r--r--cli/options.cli9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/options.cli b/cli/options.cli
index ab7be1c..28a4ee4 100644
--- a/cli/options.cli
+++ b/cli/options.cli
@@ -83,6 +83,15 @@ class options
only the first sentence from the long string is used."
};
+ bool --short-usage
+ {
+ "If specified together with \cb{--long-usage}, generate both short
+ and long usage versions. In this mode, the usage printing functions
+ are called \cb{print_short_usage()} and \cb{print_long_usage()} and
+ for the long usage the long documentation string is always used,
+ even if the short version is provided."
+ };
+
std::size_t --option-length = 0
{
"<len>",