Resolve one TODO for command line help tests
[alexxy/gromacs.git] / src / gromacs / commandline / cmdlinehelpcontext.cpp
index d18951146a7dbe98dc4c34385be6dc42f2cce18d..cfe32fbf38905227976a8f86633fd6fdb9ace6d6 100644 (file)
@@ -97,9 +97,11 @@ class CommandLineHelpContext::Impl
 };
 
 CommandLineHelpContext::CommandLineHelpContext(
-        File *file, HelpOutputFormat format, const HelpLinks *links)
+        File *file, HelpOutputFormat format, const HelpLinks *links,
+        const std::string &programName)
     : impl_(new Impl(file, format, links))
 {
+    impl_->writerContext_.setReplacement("[PROGRAM]", programName);
 }
 
 CommandLineHelpContext::CommandLineHelpContext(