diff options
author | yuraaka <yuraaka@yandex-team.ru> | 2022-02-10 16:47:05 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:05 +0300 |
commit | 5577dc406121f6fb3f45b227c01f4251880193a1 (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /library/cpp/getopt/small/last_getopt_parse_result.cpp | |
parent | 4230543261d7a38ef4dc14785ae0d45f2da43704 (diff) | |
download | ydb-5577dc406121f6fb3f45b227c01f4251880193a1.tar.gz |
Restoring authorship annotation for <yuraaka@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/getopt/small/last_getopt_parse_result.cpp')
-rw-r--r-- | library/cpp/getopt/small/last_getopt_parse_result.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/getopt/small/last_getopt_parse_result.cpp b/library/cpp/getopt/small/last_getopt_parse_result.cpp index d7230c2592..f4b5607a90 100644 --- a/library/cpp/getopt/small/last_getopt_parse_result.cpp +++ b/library/cpp/getopt/small/last_getopt_parse_result.cpp @@ -126,16 +126,16 @@ namespace NLastGetopt { TOptParseResult& r = OptParseResult(); r.AddValue(Parser_->CurValOrOpt().data()); } - - Y_ENSURE(options); - const auto freeArgs = GetFreeArgs(); - for (size_t i = 0; i < freeArgs.size(); ++i) { - if (i >= options->ArgBindings_.size()) { - break; - } - - options->ArgBindings_[i](freeArgs[i]); - } + + Y_ENSURE(options); + const auto freeArgs = GetFreeArgs(); + for (size_t i = 0; i < freeArgs.size(); ++i) { + if (i >= options->ArgBindings_.size()) { + break; + } + + options->ArgBindings_[i](freeArgs[i]); + } } catch (...) { HandleError(); } |