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:53 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:53 +0300
commit896ea04259c43c3c46da4b065d4cda47938393b9 (patch)
tree7d002af0b095494c155fc6a0319c619cb80753aa /library/cpp/getopt/small/last_getopt_opts.cpp
parentd6e236f5b91635a49d8cf1211f5d9631f24acd1b (diff)
downloadydb-896ea04259c43c3c46da4b065d4cda47938393b9.tar.gz
Restoring authorship annotation for <miroslav2@yandex-team.ru>. Commit 1 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 03c432849f..2f4022ccff 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())