aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/small/last_getopt_parse_result.h
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-04-15 12:02:48 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-04-15 12:02:48 +0300
commite7eb0a21bd81480b325a98accc2e966a67d18b24 (patch)
tree54ec6c802cfcecd7ee7daf5c7800f402816e8da5 /library/cpp/getopt/small/last_getopt_parse_result.h
parent10fe498552d69bb9f88420f4a5f118c056c8ec91 (diff)
downloadydb-e7eb0a21bd81480b325a98accc2e966a67d18b24.tar.gz
intermediate changes
ref:99dc5c0f6aa3098daa6776ff1762fb99826b2dde
Diffstat (limited to 'library/cpp/getopt/small/last_getopt_parse_result.h')
-rw-r--r--library/cpp/getopt/small/last_getopt_parse_result.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/library/cpp/getopt/small/last_getopt_parse_result.h b/library/cpp/getopt/small/last_getopt_parse_result.h
index 1ab6f598c9..c6e768c461 100644
--- a/library/cpp/getopt/small/last_getopt_parse_result.h
+++ b/library/cpp/getopt/small/last_getopt_parse_result.h
@@ -295,6 +295,20 @@ namespace NLastGetopt {
else
return defaultValue;
}
+
+ /**
+ * @return returns the argv with which the parser was started
+ */
+ const char** GetSourceArgv() {
+ return Parser_ ? Parser_->Argv_ : nullptr;
+ }
+
+ /**
+ * @returns the argc with which the parser was started
+ */
+ size_t GetSourceArgc() {
+ return Parser_ ? Parser_->Argc_ : 0;
+ }
};
/**