add env var to display the ws command typed in
This commit is contained in:
parent
c89f73006e
commit
ff81f5b496
11
ws/ws.cpp
11
ws/ws.cpp
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user