Add subsection depth to HelpWriterContext
[alexxy/gromacs.git] / src / gromacs / commandline / cmdlinehelpcontext.cpp
index e98997e5bf0aef0b68d44cc85f11d56bb82fcc2a..d18951146a7dbe98dc4c34385be6dc42f2cce18d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -136,6 +136,11 @@ void CommandLineHelpContext::setShowHidden(bool bHidden)
     impl_->bHidden_ = bHidden;
 }
 
+void CommandLineHelpContext::enterSubSection(const std::string &title)
+{
+    impl_->writerContext_.enterSubSection(title);
+}
+
 const HelpWriterContext &CommandLineHelpContext::writerContext() const
 {
     return impl_->writerContext_;