diff options
author | tldr <tldr@yandex-team.com> | 2023-09-26 18:56:53 +0300 |
---|---|---|
committer | tldr <tldr@yandex-team.com> | 2023-09-26 20:04:01 +0300 |
commit | 9f3af346b29ade72d3878f7db7daec40693bab4c (patch) | |
tree | 890bb9a697e59b38d2fd06a9137950d8cdcb5bdf /library/cpp/getopt/small/last_getopt_opt.h | |
parent | 3fadd0a33f4d1046f8af4a0ef78d53925a7839d1 (diff) | |
download | ydb-9f3af346b29ade72d3878f7db7daec40693bab4c.tar.gz |
[vcs],only allow --relative=[path], print = for EqOnly options in help
Diffstat (limited to 'library/cpp/getopt/small/last_getopt_opt.h')
-rw-r--r-- | library/cpp/getopt/small/last_getopt_opt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/getopt/small/last_getopt_opt.h b/library/cpp/getopt/small/last_getopt_opt.h index c35e0a756e..2e6437b9db 100644 --- a/library/cpp/getopt/small/last_getopt_opt.h +++ b/library/cpp/getopt/small/last_getopt_opt.h @@ -295,7 +295,7 @@ namespace NLastGetopt { * @return self */ TOpt& DisableSpaceParse() { - Y_ASSERT(GetHasArg() == OPTIONAL_ARGUMENT); + Y_ASSERT(GetHasArg() == OPTIONAL_ARGUMENT || GetHasArg() == REQUIRED_ARGUMENT); EqParseOnly_ = true; return *this; } |