add env var to display the ws command typed in

This commit is contained in:
Benjamin Sergeant 2019-05-10 16:27:23 -07:00
parent 88adbf0ca2
commit fcf5c41b43

View File

@ -37,6 +37,17 @@ int main(int argc, char** argv)
};
ix::IXCoreLogger::setLogFunction(logFunc);
// Display command.
if (getenv("DEBUG"))
{
std::cout << "Command: ";
for (int i = 0; i < argc; ++i)
{
std::cout << argv[i] << " ";
}
std::cout << std::endl;
}
CLI::App app{"ws is a websocket tool"};
app.require_subcommand();