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.ixx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'cli/options.ixx') 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. -- cgit v1.1