aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/small/last_getopt_easy_setup.cpp
diff options
context:
space:
mode:
authorIlnur Khuziev <ilnur.khuziev@yandex.ru>2022-02-10 16:46:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:14 +0300
commit60040c91ffe701a84689b2c6310ff845e65cff42 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/getopt/small/last_getopt_easy_setup.cpp
parent736dcd8ca259457a136f2f9f9168c44643914323 (diff)
downloadydb-60040c91ffe701a84689b2c6310ff845e65cff42.tar.gz
Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/getopt/small/last_getopt_easy_setup.cpp')
-rw-r--r--library/cpp/getopt/small/last_getopt_easy_setup.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/getopt/small/last_getopt_easy_setup.cpp b/library/cpp/getopt/small/last_getopt_easy_setup.cpp
index dea45dbb83..c87dedf95e 100644
--- a/library/cpp/getopt/small/last_getopt_easy_setup.cpp
+++ b/library/cpp/getopt/small/last_getopt_easy_setup.cpp
@@ -1,12 +1,12 @@
-#include "last_getopt_easy_setup.h"
-
-namespace NLastGetopt {
+#include "last_getopt_easy_setup.h"
+
+namespace NLastGetopt {
TEasySetup::TEasySetup(const TStringBuf& optstring)
: TOpts(optstring)
{
AddHelpOption();
}
-
+
TOpt& TEasySetup::AdjustParam(const char* longName, const char* help, const char* argName, bool required) {
Y_ASSERT(longName);
TOpt& o = AddLongOption(longName);
@@ -23,25 +23,25 @@ namespace NLastGetopt {
}
return o;
}
-
+
TEasySetup& TEasySetup::operator()(char shortName, const char* longName, const char* help, bool required) {
AdjustParam(longName, help, nullptr, required).AddShortName(shortName);
return *this;
- }
+ }
TEasySetup& TEasySetup::operator()(char shortName, const char* longName, const char* argName, const char* help, bool required) {
AdjustParam(longName, help, argName, required).AddShortName(shortName);
return *this;
- }
+ }
TEasySetup& TEasySetup::operator()(const char* longName, const char* help, bool required) {
AdjustParam(longName, help, nullptr, required);
return *this;
- }
-
+ }
+
TEasySetup& TEasySetup::operator()(const char* longName, const char* argName, const char* help, bool required) {
AdjustParam(longName, help, argName, required);
return *this;
}
-
-}
+
+}