aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt
diff options
context:
space:
mode:
authorkimkim <kimkim@yandex-team.ru>2022-02-10 16:49:28 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:28 +0300
commit10807864acf73d00f425a23b442aac2cf34403a8 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/getopt
parent13f84424ed9975f6827d9786087c6fe6ea265cda (diff)
downloadydb-10807864acf73d00f425a23b442aac2cf34403a8.tar.gz
Restoring authorship annotation for <kimkim@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/getopt')
-rw-r--r--library/cpp/getopt/small/opt2.cpp8
-rw-r--r--library/cpp/getopt/small/opt2.h4
-rw-r--r--library/cpp/getopt/small/ygetopt.cpp4
-rw-r--r--library/cpp/getopt/small/ygetopt.h2
-rw-r--r--library/cpp/getopt/ya.make12
5 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/getopt/small/opt2.cpp b/library/cpp/getopt/small/opt2.cpp
index f5913e9238..0cdc774e78 100644
--- a/library/cpp/getopt/small/opt2.cpp
+++ b/library/cpp/getopt/small/opt2.cpp
@@ -2,8 +2,8 @@
#include <util/generic/hash.h>
#include <util/generic/utility.h>
-#include <util/generic/yexception.h>
-#include <util/str_stl.h>
+#include <util/generic/yexception.h>
+#include <util/str_stl.h>
#include <stdio.h>
#include <errno.h>
@@ -37,7 +37,7 @@ void Opt2::EatArgv(const char* optspec, const char* long_alias) {
optspec++;
}
if (*optspec == '-')
- ythrow yexception() << "Flag '-' can not be used in Opt2's optspec";
+ ythrow yexception() << "Flag '-' can not be used in Opt2's optspec";
// step 1 - parse optspec
for (const char* s = optspec; *s; s++) {
if (SpecsMap[(ui8)*s])
@@ -50,7 +50,7 @@ void Opt2::EatArgv(const char* optspec, const char* long_alias) {
if (s[1] == ':') {
Specs.back().HasArg = true;
if (s[2] == ':')
- ythrow yexception() << "Opt2 does not accept optional parameters (e.g. \"a::\") in optspec";
+ ythrow yexception() << "Opt2 does not accept optional parameters (e.g. \"a::\") in optspec";
s++;
}
}
diff --git a/library/cpp/getopt/small/opt2.h b/library/cpp/getopt/small/opt2.h
index 11767fd94a..4d9d943237 100644
--- a/library/cpp/getopt/small/opt2.h
+++ b/library/cpp/getopt/small/opt2.h
@@ -1,8 +1,8 @@
#pragma once
-#include <util/system/defaults.h>
+#include <util/system/defaults.h>
#include <util/generic/string.h>
-#include <util/generic/vector.h>
+#include <util/generic/vector.h>
// simplified options parser
// No 'optional argument' (e.g. "a::" in spec.) support;
diff --git a/library/cpp/getopt/small/ygetopt.cpp b/library/cpp/getopt/small/ygetopt.cpp
index 735071c2cd..1f52827f74 100644
--- a/library/cpp/getopt/small/ygetopt.cpp
+++ b/library/cpp/getopt/small/ygetopt.cpp
@@ -2,8 +2,8 @@
#include "ygetopt.h"
#include <util/generic/string.h>
-#include <util/generic/vector.h>
-#include <util/generic/yexception.h>
+#include <util/generic/vector.h>
+#include <util/generic/yexception.h>
class TGetOpt::TImpl: public TSimpleRefCount<TImpl> {
public:
diff --git a/library/cpp/getopt/small/ygetopt.h b/library/cpp/getopt/small/ygetopt.h
index 0d5b7371ff..615d3dd18e 100644
--- a/library/cpp/getopt/small/ygetopt.h
+++ b/library/cpp/getopt/small/ygetopt.h
@@ -1,7 +1,7 @@
#pragma once
#include <util/generic/fwd.h>
-#include <util/generic/ptr.h>
+#include <util/generic/ptr.h>
class TGetOpt {
public:
diff --git a/library/cpp/getopt/ya.make b/library/cpp/getopt/ya.make
index e5a0fa62dc..6df23b22b2 100644
--- a/library/cpp/getopt/ya.make
+++ b/library/cpp/getopt/ya.make
@@ -1,15 +1,15 @@
LIBRARY()
-
+
OWNER(pg)
-
+
PEERDIR(
library/cpp/getopt/small
library/cpp/svnversion
library/cpp/build_info
)
-SRCS(
+SRCS(
GLOBAL print.cpp
-)
-
-END()
+)
+
+END()