util: Sends all read input to debug output

This commit is contained in:
Paul Beckingham 2015-07-24 12:51:52 -04:00
parent 18046ae92d
commit 70e4d16768

View file

@ -76,6 +76,7 @@ bool confirm (const std::string& question)
std::string answer {""}; std::string answer {""};
std::getline (std::cin, answer); std::getline (std::cin, answer);
context.debug ("STDIN '" + answer + "'");
answer = std::cin.eof() ? STRING_UTIL_CONFIRM_NO : lowerCase (trim (answer)); answer = std::cin.eof() ? STRING_UTIL_CONFIRM_NO : lowerCase (trim (answer));
autoComplete (answer, options, matches, 1); // Hard-coded 1. autoComplete (answer, options, matches, 1); // Hard-coded 1.
@ -112,6 +113,7 @@ int confirm4 (const std::string& question)
std::string answer {""}; std::string answer {""};
std::getline (std::cin, answer); std::getline (std::cin, answer);
context.debug ("STDIN '" + answer + "'");
answer = trim (answer); answer = trim (answer);
autoComplete (answer, options, matches, 1); // Hard-coded 1. autoComplete (answer, options, matches, 1); // Hard-coded 1.
} }