diff options
author | ekrokhalev <ekrokhalev@yandex-team.ru> | 2022-02-10 16:50:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:10 +0300 |
commit | 1c01ed5294724fda060c1f0bd674b315fe249598 (patch) | |
tree | c21292982d2c8182cdf5753f9a49e7cda547f4d3 /library/cpp/getopt/small/opt2.cpp | |
parent | 9991a6195dee8db26aa7e2f5f21549fb20e25002 (diff) | |
download | ydb-1c01ed5294724fda060c1f0bd674b315fe249598.tar.gz |
Restoring authorship annotation for <ekrokhalev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/getopt/small/opt2.cpp')
-rw-r--r-- | library/cpp/getopt/small/opt2.cpp | 12 |
1 files changed, 6 insertions, 6 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; |