aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt
diff options
context:
space:
mode:
authorekrokhalev <ekrokhalev@yandex-team.ru>2022-02-10 16:50:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:10 +0300
commit1c01ed5294724fda060c1f0bd674b315fe249598 (patch)
treec21292982d2c8182cdf5753f9a49e7cda547f4d3 /library/cpp/getopt
parent9991a6195dee8db26aa7e2f5f21549fb20e25002 (diff)
downloadydb-1c01ed5294724fda060c1f0bd674b315fe249598.tar.gz
Restoring authorship annotation for <ekrokhalev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/getopt')
-rw-r--r--library/cpp/getopt/small/opt2.cpp12
-rw-r--r--library/cpp/getopt/small/opt2.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/getopt/small/opt2.cpp b/library/cpp/getopt/small/opt2.cpp
index 0cdc774e788..1ce2741c86b 100644
--- a/library/cpp/getopt/small/opt2.cpp
+++ b/library/cpp/getopt/small/opt2.cpp
@@ -248,13 +248,13 @@ unsigned long Opt2::UInt(char opt, const char* help, unsigned long def, bool req
return rv;
}
-// Add user defined error message and set error flag
-void Opt2::AddError(const char* message) {
- HasErrors = true;
+// Add user defined error message and set error flag
+void Opt2::AddError(const char* message) {
+ HasErrors = true;
if (message)
- UserErrorMessages.push_back(message);
-}
-
+ UserErrorMessages.push_back(message);
+}
+
int Opt2::AutoUsage(const char* free_arg_names) {
if (!HasErrors)
return 0;
diff --git a/library/cpp/getopt/small/opt2.h b/library/cpp/getopt/small/opt2.h
index 4d9d9432372..84198c1abad 100644
--- a/library/cpp/getopt/small/opt2.h
+++ b/library/cpp/getopt/small/opt2.h
@@ -107,9 +107,9 @@ public:
// For options w/o parameters
bool Has(char opt, const char* helpUsage);
- // Add user defined error message and set error flag
+ // Add user defined error message and set error flag
void AddError(const char* message = nullptr);
-
+
public:
// non-option args
TVector<char*> Pos;