summaryrefslogtreecommitdiff
path: root/src/options/options_template.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-09-08 23:00:23 +0000
committerMorgan Deters <mdeters@gmail.com>2012-09-08 23:00:23 +0000
commitd8757fb4159e35de9c9a88e0ebb3c2a06d69633d (patch)
tree78ffba6f0b4e408a900119514300cbed7920aa69 /src/options/options_template.cpp
parent480d440174c565bec9aba412c0d35221c9169ff6 (diff)
Add [*] footnotes to --help output indicating for many options --FOO that there are --no-FOO variants.
Diffstat (limited to 'src/options/options_template.cpp')
-rw-r--r--src/options/options_template.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/options/options_template.cpp b/src/options/options_template.cpp
index 560efdfe3..2c1323661 100644
--- a/src/options/options_template.cpp
+++ b/src/options/options_template.cpp
@@ -226,6 +226,11 @@ Additional CVC4 options:${remaining_documentation}";
#line 228 "${template}"
+static const std::string optionsFootnote = "\n\
+[*] Each of these options has a --no-OPTIONNAME variant, which reverses the\n\
+ sense of the option.\n\
+";
+
static const std::string languageDescription = "\
Languages currently supported as arguments to the -L / --lang option:\n\
auto attempt to automatically determine the input language\n\
@@ -248,11 +253,13 @@ std::string Options::getDescription() const {
}
void Options::printUsage(const std::string msg, std::ostream& out) {
- out << msg << optionsDescription << std::endl << std::flush;
+ out << msg << optionsDescription << std::endl
+ << optionsFootnote << std::endl << std::flush;
}
void Options::printShortUsage(const std::string msg, std::ostream& out) {
- out << msg << mostCommonOptionsDescription << std::endl << std::endl
+ out << msg << mostCommonOptionsDescription << std::endl
+ << optionsFootnote << std::endl
<< "For full usage, please use --help." << std::endl << std::flush;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback