MCPcopy Create free account
hub / github.com/catboost/catboost / PrintVersionAndExit

Function PrintVersionAndExit

library/cpp/getopt/small/last_getopt_opts.cpp:27–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 static const TStringBuf SPad = " ";
26
27 void PrintVersionAndExit(const TOptsParser*) {
28 Cout << (NLastGetoptPrivate::VersionString() ? NLastGetoptPrivate::VersionString() : "program version: not linked with library/cpp/getopt") << Endl;
29 exit(NLastGetoptPrivate::VersionString().empty());
30 }
31
32 void PrintShortVersionAndExit(const TString& appName) {
33 Cout << appName << " version " << (NLastGetoptPrivate::ShortVersionString() ? NLastGetoptPrivate::ShortVersionString() : "not linked with library/cpp/getopt") << Endl;

Callers 1

RunMethod · 0.85

Calls 3

exitFunction · 0.85
VersionStringFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected