From 5b0c3d15701a47a90fe0897407470e5f271f4d3e Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 18 Apr 2018 00:00:08 +0200 Subject: [PATCH] Fix --help-aliases to match the description. --- src/xbt/config.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/xbt/config.cpp b/src/xbt/config.cpp index 0a5f2f3568..deb5fc34c8 100644 --- a/src/xbt/config.cpp +++ b/src/xbt/config.cpp @@ -357,14 +357,11 @@ void Config::dump(const char *name, const char *indent) fflush(stdout); } -/** @brief Displays the declared aliases and their description */ +/** @brief Displays the declared aliases and their replacement */ void Config::showAliases() { - bool old_warn_for_aliases = false; - std::swap(warn_for_aliases, old_warn_for_aliases); for (auto const& elm : aliases) - printf(" %s: %s\n", elm.first.c_str(), (*this)[elm.first.c_str()].getDescription().c_str()); - std::swap(warn_for_aliases, old_warn_for_aliases); + printf(" %-40s %s\n", elm.first.c_str(), elm.second->getKey().c_str()); } /** @brief Displays the declared options and their description */ -- 2.20.1