aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:19 +0300
commitbd085aee9b4f7a0bee302ce687964ffb7098f986 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/getopt
parent475c0a46f28166e83fd263badc7546377cddcabe (diff)
downloadydb-bd085aee9b4f7a0bee302ce687964ffb7098f986.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/getopt')
-rw-r--r--library/cpp/getopt/small/completion_generator.cpp4
-rw-r--r--library/cpp/getopt/small/completion_generator.h2
-rw-r--r--library/cpp/getopt/small/last_getopt_handlers.h2
-rw-r--r--library/cpp/getopt/small/last_getopt_opt.h2
-rw-r--r--library/cpp/getopt/small/last_getopt_opts.cpp2
-rw-r--r--library/cpp/getopt/small/last_getopt_parser.cpp2
6 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/getopt/small/completion_generator.cpp b/library/cpp/getopt/small/completion_generator.cpp
index 7bacd5fffa..ac41988217 100644
--- a/library/cpp/getopt/small/completion_generator.cpp
+++ b/library/cpp/getopt/small/completion_generator.cpp
@@ -48,7 +48,7 @@ namespace NLastGetopt {
L << "local prefix_orig=\"$PREFIX\"";
L << "local suffix_orig=\"$SUFFIX\"";
L;
- std::visit(TOverloaded{
+ std::visit(TOverloaded{
[&out, &manager](const TModChooser* modChooser) {
GenerateModesCompletion(out, *modChooser, manager);
},
@@ -390,7 +390,7 @@ namespace NLastGetopt {
L << "local need_space=\"1\"";
L << "local IFS=$' \\t\\n'";
L;
- std::visit(TOverloaded{
+ std::visit(TOverloaded{
[&out, &manager](const TModChooser* modChooser) {
GenerateModesCompletion(out, *modChooser, manager, 1);
},
diff --git a/library/cpp/getopt/small/completion_generator.h b/library/cpp/getopt/small/completion_generator.h
index 8c21d6fa36..4241bb7d6c 100644
--- a/library/cpp/getopt/small/completion_generator.h
+++ b/library/cpp/getopt/small/completion_generator.h
@@ -19,7 +19,7 @@ namespace NLastGetopt {
virtual void Generate(TStringBuf command, IOutputStream& stream) = 0;
protected:
- std::variant<const TModChooser*, const TOpts*> Options_;
+ std::variant<const TModChooser*, const TOpts*> Options_;
};
class TZshCompletionGenerator: public TCompletionGenerator {
diff --git a/library/cpp/getopt/small/last_getopt_handlers.h b/library/cpp/getopt/small/last_getopt_handlers.h
index 961298127f..d35456ef34 100644
--- a/library/cpp/getopt/small/last_getopt_handlers.h
+++ b/library/cpp/getopt/small/last_getopt_handlers.h
@@ -3,7 +3,7 @@
#include "last_getopt_support.h"
#include <util/string/split.h>
-#include <util/system/compiler.h>
+#include <util/system/compiler.h>
namespace NLastGetopt {
/// Handler to split option value by delimiter into a target container.
diff --git a/library/cpp/getopt/small/last_getopt_opt.h b/library/cpp/getopt/small/last_getopt_opt.h
index 707b7cc279..a8dd5adca9 100644
--- a/library/cpp/getopt/small/last_getopt_opt.h
+++ b/library/cpp/getopt/small/last_getopt_opt.h
@@ -8,7 +8,7 @@
#include <util/generic/string.h>
#include <util/generic/maybe.h>
#include <util/generic/vector.h>
-#include <util/string/cast.h>
+#include <util/string/cast.h>
#include <stdarg.h>
diff --git a/library/cpp/getopt/small/last_getopt_opts.cpp b/library/cpp/getopt/small/last_getopt_opts.cpp
index 698cc8bee7..03c432849f 100644
--- a/library/cpp/getopt/small/last_getopt_opts.cpp
+++ b/library/cpp/getopt/small/last_getopt_opts.cpp
@@ -260,7 +260,7 @@ namespace NLastGetopt {
}
TStringBuf TOpts::GetFreeArgTitle(size_t pos) const {
- if (FreeArgSpecs_.contains(pos)) {
+ if (FreeArgSpecs_.contains(pos)) {
return FreeArgSpecs_.at(pos).GetTitle(DefaultFreeArgTitle_);
}
return DefaultFreeArgTitle_;
diff --git a/library/cpp/getopt/small/last_getopt_parser.cpp b/library/cpp/getopt/small/last_getopt_parser.cpp
index 477723a7d8..7668b12a03 100644
--- a/library/cpp/getopt/small/last_getopt_parser.cpp
+++ b/library/cpp/getopt/small/last_getopt_parser.cpp
@@ -341,7 +341,7 @@ namespace NLastGetopt {
const TOpt* opt = (*it).Get();
if (nullptr == opt)
continue;
- if (OptsSeen_.contains(opt))
+ if (OptsSeen_.contains(opt))
continue;
if (opt->IsRequired()) {