summaryrefslogtreecommitdiff
path: root/cli/options.ixx
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.ixx
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.ixx')
-rw-r--r--cli/options.ixx19
1 files changed, 18 insertions, 1 deletions
diff --git a/cli/options.ixx b/cli/options.ixx
index a361898..a66312d 100644
--- a/cli/options.ixx
+++ b/cli/options.ixx
@@ -1,7 +1,14 @@
-// This code was generated by CLI, a command line interface
+// -*- C++ -*-
+//
+// This file was generated by CLI, a command line interface
// compiler for C++.
//
+// Begin prologue.
+//
+//
+// End prologue.
+
namespace cli
{
// unknown_mode
@@ -274,6 +281,12 @@ long_usage () const
return this->long_usage_;
}
+inline const bool& options::
+short_usage () const
+{
+ return this->short_usage_;
+}
+
inline const std::size_t& options::
option_length () const
{
@@ -514,3 +527,7 @@ options_file () const
return this->options_file_;
}
+// Begin epilogue.
+//
+//
+// End epilogue.