aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/small/opt.cpp
diff options
context:
space:
mode:
authoralbert <albert@yandex-team.ru>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:14 +0300
commit9f25ef3232c288ca664ceee6c376cf64e4349a2e (patch)
treeb192eaf3150845f7302fafd460a972b0439d6fe5 /library/cpp/getopt/small/opt.cpp
parent6a1e535429145ec1ecfbc5f1efd3c95323261fb5 (diff)
downloadydb-9f25ef3232c288ca664ceee6c376cf64e4349a2e.tar.gz
Restoring authorship annotation for <albert@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/getopt/small/opt.cpp')
-rw-r--r--library/cpp/getopt/small/opt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/getopt/small/opt.cpp b/library/cpp/getopt/small/opt.cpp
index 744501765c..356439eb38 100644
--- a/library/cpp/getopt/small/opt.cpp
+++ b/library/cpp/getopt/small/opt.cpp
@@ -27,13 +27,13 @@ void Opt::Init(int argc, char* argv[], const char* optString, const Ion* longOpt
TOpt* opt;
if ((unsigned)o->val < 0x80 && isalnum(o->val)) {
opt = &Opts_->CharOption(char(o->val));
- opt->AddLongName(o->name);
+ opt->AddLongName(o->name);
} else {
Opts_->AddLongOption(o->name);
opt = const_cast<TOpt*>(&Opts_->GetLongOption(o->name));
}
opt->HasArg_ = EHasArg(o->has_arg);
- opt->UserValue(o);
+ opt->UserValue(o);
}
Opts_->AllowSingleDashForLong_ = longOnly;
Opts_->AllowPlusForLong_ = true;
@@ -68,7 +68,7 @@ int Opt::Get(int* longOptionIndex) {
return EOF;
} else {
Arg = (char*)OptsParser_->CurVal();
- if (!OptsParser_->CurOpt()) {
+ if (!OptsParser_->CurOpt()) {
// possible if RETURN_IN_ORDER
return 1;
} else {
@@ -76,7 +76,7 @@ int Opt::Get(int* longOptionIndex) {
if (longOptionIndex) {
*longOptionIndex = int(ion - Ions_);
}
- char c = OptsParser_->CurOpt()->GetCharOr0();
+ char c = OptsParser_->CurOpt()->GetCharOr0();
return c != 0 ? c : ion->val;
}
}
@@ -89,7 +89,7 @@ int Opt::Get(int* longOptionIndex) {
}
void Opt::DummyHelp(IOutputStream& os) {
- Opts_->PrintUsage(GetProgramName(), os);
+ Opts_->PrintUsage(GetProgramName(), os);
}
int Opt::GetArgC() const {