Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix --help-aliases to match the description.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 17 Apr 2018 22:00:08 +0000 (00:00 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 18 Apr 2018 20:54:09 +0000 (22:54 +0200)
src/xbt/config.cpp

index 0a5f2f3..deb5fc3 100644 (file)
@@ -357,14 +357,11 @@ void Config::dump(const char *name, const char *indent)
   fflush(stdout);
 }
 
   fflush(stdout);
 }
 
-/** @brief Displays the declared aliases and their description */
+/** @brief Displays the declared aliases and their replacement */
 void Config::showAliases()
 {
 void Config::showAliases()
 {
-  bool old_warn_for_aliases = false;
-  std::swap(warn_for_aliases, old_warn_for_aliases);
   for (auto const& elm : 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 */
 }
 
 /** @brief Displays the declared options and their description */