diff options
author | bulatkhr <bulatkhr@yandex-team.com> | 2022-07-15 10:12:22 +0300 |
---|---|---|
committer | bulatkhr <bulatkhr@yandex-team.com> | 2022-07-15 10:12:22 +0300 |
commit | 03cf908feb326c966c4384fde4360f08d9b5b4e1 (patch) | |
tree | 29faaf859522f25ba29220000dac674ac364569a /library/cpp/getopt/small/last_getopt_parser.cpp | |
parent | b63fb26957f120f5cbf2a363d9fef60df2e7c2ae (diff) | |
download | ydb-03cf908feb326c966c4384fde4360f08d9b5b4e1.tar.gz |
Allow skip arg in opt parser
add UnnecessaryArgument
Diffstat (limited to 'library/cpp/getopt/small/last_getopt_parser.cpp')
-rw-r--r-- | library/cpp/getopt/small/last_getopt_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/getopt/small/last_getopt_parser.cpp b/library/cpp/getopt/small/last_getopt_parser.cpp index 7668b12a03..911c76f342 100644 --- a/library/cpp/getopt/small/last_getopt_parser.cpp +++ b/library/cpp/getopt/small/last_getopt_parser.cpp @@ -170,7 +170,7 @@ namespace NLastGetopt { bool TOptsParser::ParseOptParam(const TOpt* opt, size_t pos) { Y_ASSERT(opt); - if (opt->GetHasArg() == NO_ARGUMENT) { + if (opt->GetHasArg() == NO_ARGUMENT || opt->IsEqParseOnly()) { return Commit(opt, nullptr, pos, 0); } if (pos == Argc_) { |