aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/small/last_getopt_opts.cpp
diff options
context:
space:
mode:
authormiroslav2 <miroslav2@yandex-team.ru>2022-02-10 16:50:54 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:54 +0300
commite13b11cc555cf840f384b0a13c95fda563c7e81b (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/getopt/small/last_getopt_opts.cpp
parent896ea04259c43c3c46da4b065d4cda47938393b9 (diff)
downloadydb-e13b11cc555cf840f384b0a13c95fda563c7e81b.tar.gz
Restoring authorship annotation for <miroslav2@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/getopt/small/last_getopt_opts.cpp')
-rw-r--r--library/cpp/getopt/small/last_getopt_opts.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/getopt/small/last_getopt_opts.cpp b/library/cpp/getopt/small/last_getopt_opts.cpp
index 2f4022ccff..03c432849f 100644
--- a/library/cpp/getopt/small/last_getopt_opts.cpp
+++ b/library/cpp/getopt/small/last_getopt_opts.cpp
@@ -15,10 +15,10 @@ namespace NLastGetoptPrivate {
static TString data;
return data;
}
- TString& ShortVersionString() {
- static TString data;
- return data;
- }
+ TString& ShortVersionString() {
+ static TString data;
+ return data;
+ }
}
namespace NLastGetopt {
@@ -29,11 +29,11 @@ namespace NLastGetopt {
exit(NLastGetoptPrivate::VersionString().empty());
}
- void PrintShortVersionAndExit(const TString& appName) {
+ void PrintShortVersionAndExit(const TString& appName) {
Cout << appName << " version " << (NLastGetoptPrivate::ShortVersionString() ? NLastGetoptPrivate::ShortVersionString() : "not linked with library/cpp/getopt") << Endl;
- exit(NLastGetoptPrivate::ShortVersionString().empty());
- }
-
+ exit(NLastGetoptPrivate::ShortVersionString().empty());
+ }
+
// Like TString::Quote(), but does not quote digits-only string
static TString QuoteForHelp(const TString& str) {
if (str.empty())