From 2eb28736a05c7083f2b30b501954a789bbd85f88 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Sep 2015 15:18:11 +0200 Subject: Add --short-usage option When combined with --long-usage, it makes CLI generate both short and long usage printing code. --- cli/options.cli | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cli/options.cli') 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 { "", -- cgit v1.1