aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/small/opt2.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/getopt/small/opt2.h
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/getopt/small/opt2.h')
-rw-r--r--library/cpp/getopt/small/opt2.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/getopt/small/opt2.h b/library/cpp/getopt/small/opt2.h
index 4d9d943237..70b2701122 100644
--- a/library/cpp/getopt/small/opt2.h
+++ b/library/cpp/getopt/small/opt2.h
@@ -1,7 +1,7 @@
#pragma once
#include <util/system/defaults.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/generic/vector.h>
// simplified options parser
@@ -31,9 +31,9 @@ struct Opt2Param {
bool IsRequired;
bool MultipleUse;
const char* DefValue;
- TString DefValueStr;
- TString HelpUsage;
- TVector<const char*> ActualValue;
+ TString DefValueStr;
+ TString HelpUsage;
+ TVector<const char*> ActualValue;
const char* LongOptName;
Opt2Param()
: HasArg(false)
@@ -112,7 +112,7 @@ public:
public:
// non-option args
- TVector<char*> Pos;
+ TVector<char*> Pos;
bool HasErrors;
private:
@@ -122,15 +122,15 @@ private:
char OptionMissingArg;
char OptionWrongArg;
char RequiredOptionMissing;
- TVector<TString> UserErrorMessages;
+ TVector<TString> UserErrorMessages;
protected:
int Argc;
char* const* Argv;
int MinArgs, MaxArgs;
ui8 SpecsMap[256];
- TVector<Opt2Param> Specs;
- TString alias_copy;
+ TVector<Opt2Param> Specs;
+ TString alias_copy;
void EatArgv(const char* optspec, const char* long_alias);
void Clear();
Opt2Param& GetInternal(char opt, const char* defValue, const char* helpUsage, bool required);