MCPcopy Create free account
hub / github.com/JonMagon/KDiskMark / isTerminalRequested

Function isTerminalRequested

src/main.cpp:23–31  ·  view source on GitHub ↗

QApplication requires a graphical display. With --tui, --help, --version or without a display, the terminal interface is started over QCoreApplication.

Source from the content-addressed store, hash-verified

21// QApplication requires a graphical display. With --tui, --help, --version or
22// without a display, the terminal interface is started over QCoreApplication.
23static bool isTerminalRequested(int argc, char *argv[])
24{
25 for (const char *option : { "--tui", "-h", "--help", "--help-all", "-v", "--version" }) {
26 if (isOptionPassed(argc, argv, option))
27 return true;
28 }
29
30 return false;
31}
32
33int main(int argc, char *argv[])
34{

Callers 1

mainFunction · 0.85

Calls 1

isOptionPassedFunction · 0.85

Tested by

no test coverage detected