MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / ShowHelpCommandLine

Function ShowHelpCommandLine

src/cec-client/cec-client.cpp:295–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295void ShowHelpCommandLine(const char* strExec)
296{
297 CLockObject lock(g_outputMutex);
298 std::cout << std::endl <<
299 strExec << " {-h|--help|-l|--list-devices|[COM PORT]}" << std::endl <<
300 std::endl <<
301 "parameters:" << std::endl <<
302 " -h --help Shows this help text" << std::endl <<
303 " -l --list-devices List all devices on this system" << std::endl <<
304 " -t --type {p|r|t|a} The device type to use. More than one is possible." << std::endl <<
305 " -p --port {int} The HDMI port to use as active source." << std::endl <<
306 " -b --base {int} The logical address of the device to which this " << std::endl <<
307 " adapter is connected." << std::endl <<
308 " -f --log-file {file} Writes all libCEC log message to a file" << std::endl <<
309 " -r --rom Read saved settings from the EEPROM" << std::endl <<
310 " -sf --short-log-file {file} Writes all libCEC log message without timestamps" << std::endl <<
311 " and log levels to a file." << std::endl <<
312 " -d --log-level {level} Sets the log level. See cectypes.h for values." << std::endl <<
313 " -s --single-command Execute a single command and exit. Does not power" << std::endl <<
314 " on devices on startup and power them off on exit." << std::endl <<
315 " -o --osd-name {osd name} Use a custom osd name." << std::endl <<
316 " -m --monitor Start a monitor-only client." << std::endl <<
317 " -i --info Shows information about how libCEC was compiled." << std::endl <<
318 " [COM PORT] The com port to connect to. If no COM" << std::endl <<
319 " port is given, the client tries to connect to the" << std::endl <<
320 " first device that is detected." << std::endl <<
321 std::endl <<
322 "Type 'h' or 'help' and press enter after starting the client to display all " << std::endl <<
323 "available commands" << std::endl;
324}
325
326void ShowHelpConsole(void)
327{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected