aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/small/last_getopt_parser.h
diff options
context:
space:
mode:
authoramatanhead <amatanhead@yandex-team.ru>2022-02-10 16:50:04 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:04 +0300
commit8879605a63ac17539be5b3bd41b529791f4d4b02 (patch)
tree5739c7303cbe09d02b881e25bb294a4a173422a0 /library/cpp/getopt/small/last_getopt_parser.h
parent830fe7ae4073c2707f3f3138303ccc56052c0327 (diff)
downloadydb-8879605a63ac17539be5b3bd41b529791f4d4b02.tar.gz
Restoring authorship annotation for <amatanhead@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/getopt/small/last_getopt_parser.h')
-rw-r--r--library/cpp/getopt/small/last_getopt_parser.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/getopt/small/last_getopt_parser.h b/library/cpp/getopt/small/last_getopt_parser.h
index 2cf8a6c308..19c34dce51 100644
--- a/library/cpp/getopt/small/last_getopt_parser.h
+++ b/library/cpp/getopt/small/last_getopt_parser.h
@@ -88,26 +88,26 @@ namespace NLastGetopt {
/// fetch next argument, false if no more arguments left
bool Next();
- bool Seen(const TOpt* opt) const {
- return OptsSeen_.contains(opt);
- }
-
- bool Seen(TStringBuf name) const {
- if (auto opt = Opts_->FindLongOption(name)) {
- return Seen(opt);
- } else {
- return false;
- }
- }
-
- bool Seen(char name) const {
- if (auto opt = Opts_->FindCharOption(name)) {
- return Seen(opt);
- } else {
- return false;
- }
- }
-
+ bool Seen(const TOpt* opt) const {
+ return OptsSeen_.contains(opt);
+ }
+
+ bool Seen(TStringBuf name) const {
+ if (auto opt = Opts_->FindLongOption(name)) {
+ return Seen(opt);
+ } else {
+ return false;
+ }
+ }
+
+ bool Seen(char name) const {
+ if (auto opt = Opts_->FindCharOption(name)) {
+ return Seen(opt);
+ } else {
+ return false;
+ }
+ }
+
const TOpt* CurOpt() const {
return CurrentOpt_;
}