Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

removed unused option #372

Merged
merged 4 commits into from
Jun 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Version 2022-dev
- properties can be removed and string conversion much improved (#365)
- adapted tokenizer api (#367)
- improve mkl linkage and threading backend selection (#371)
- removed tex option (#372)

Version 2021.1 (released XX.03.21)
==================================
Expand Down
2 changes: 1 addition & 1 deletion include/votca/tools/propertyiomanipulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace tools {
* \brief Manipulates the format state of the output stream
*
* Changes the state of the output stream. Property class reads this state
* and formats its output according to this state (XML, TXT, etc)
* and formats its output according to this state (XML, TXT, etc)
*/
class PropertyIOManipulator {

Expand Down
12 changes: 5 additions & 7 deletions src/libtools/application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ int Application::Exec(int argc, char **argv) {
AddProgramOptions()("verbose", " be loud and noisy");
AddProgramOptions()("verbose1", " be very loud and noisy");
AddProgramOptions()("verbose2,v", " be extremly loud and noisy");
AddProgramOptions("Hidden")("man", " output man-formatted manual pages");
AddProgramOptions("Hidden")("tex", " output tex-formatted manual pages");

Initialize(); // initialize program-specific parameters

Expand Down Expand Up @@ -163,7 +161,7 @@ void Application::CheckRequired(const string &option_name,
void Application::PrintDescription(std::ostream &out,
const string &calculator_name,
const string help_path, HelpType help_type) {
boost::format _format("%|3t|%1% %|20t|%2% \n");
boost::format format("%|3t|%1% %|20t|%2% \n");
string help_string;
boost::filesystem::path arg_path;
Property options;
Expand All @@ -181,10 +179,10 @@ void Application::PrintDescription(std::ostream &out,
calculator_options.findAttribute("help");

if (atr_it != calculator_options.lastAttribute()) {
help_string = (*atr_it).second;
help_string = atr_it->second;
} else {
if (Log::current_level > 0) {
out << _format % calculator_name % "Undocumented";
out << format % calculator_name % "Undocumented";
}
return;
}
Expand All @@ -193,7 +191,7 @@ void Application::PrintDescription(std::ostream &out,
default:
break;
case HelpShort: // short description of the calculator
out << _format % calculator_name % help_string;
out << format % calculator_name % help_string;
break;
case HelpLong:
votca::tools::PropertyIOManipulator iom(
Expand All @@ -204,7 +202,7 @@ void Application::PrintDescription(std::ostream &out,

} catch (std::exception &) {
if (Log::current_level > 0) {
out << _format % calculator_name % "Undocumented";
out << format % calculator_name % "Undocumented";
}
}
}
Expand Down