MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / CheckArgs

Function CheckArgs

gui/main.cpp:85–96  ·  view source on GitHub ↗

Check only arguments needing action before GUI is shown. Rest of the arguments are handled in MainWindow::HandleCLIParams()

Source from the content-addressed store, hash-verified

83// Check only arguments needing action before GUI is shown.
84// Rest of the arguments are handled in MainWindow::HandleCLIParams()
85static bool CheckArgs(const QStringList &args)
86{
87 if (args.contains("-h") || args.contains("--help")) {
88 ShowUsage();
89 return false;
90 }
91 if (args.contains("-v") || args.contains("--version")) {
92 ShowVersion();
93 return false;
94 }
95 return true;
96}
97
98static void ShowUsage()
99{

Callers 1

mainFunction · 0.85

Calls 3

ShowUsageFunction · 0.85
ShowVersionFunction · 0.85
containsMethod · 0.45

Tested by

no test coverage detected