#pragma once #include "last_getopt_support.h" #include #include namespace NLastGetopt { /// Handler to split option value by delimiter into a target container. template struct TOptSplitHandler; /// Handler to split option value by delimiter into a target container and allow ranges. template struct TOptRangeSplitHandler; /// Handler to parse key-value pairs (default delimiter is '=') and apply user-supplied handler to each pair template struct TOptKVHandler; [[noreturn]] void PrintUsageAndExit(const TOptsParser* parser); [[noreturn]] void PrintVersionAndExit(const TOptsParser* parser); [[noreturn]] void PrintShortVersionAndExit(const TString& appName); }