Legacy Checking

- The 'show' command now mentions use of any deprecated configuration
  variables.
This commit is contained in:
Paul Beckingham 2011-10-22 23:28:31 -04:00
parent dc3470a9a8
commit 0aa953dc4e
4 changed files with 46 additions and 8 deletions

View file

@ -284,6 +284,16 @@ int CmdShow::execute (std::string& output)
<< (view.rows () == 0 ? STRING_CMD_SHOW_NONE : "")
<< (view.rows () == 0 ? "\n\n" : "\n");
if (default_values.size ())
{
out << STRING_CMD_SHOW_DIFFER;
if (context.color ())
out << " "
<< format (STRING_CMD_SHOW_DIFFER_COLOR, warning.colorize ("color"))
<< "\n\n";
}
// Display the unrecognized variables.
if (unrecognized.size ())
{
@ -298,14 +308,7 @@ int CmdShow::execute (std::string& output)
out << "\n\n";
}
if (default_values.size ())
{
out << STRING_CMD_SHOW_DIFFER;
if (context.color ())
out << " " << format (STRING_CMD_SHOW_DIFFER_COLOR, warning.colorize ("color"));
}
out << legacyCheckForDeprecatedVariables ();
out << legacyCheckForDeprecatedColor ();
out << legacyCheckForDeprecatedColumns ();