diff options
| author | luckygeck <[email protected]> | 2022-02-10 16:49:18 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:18 +0300 | 
| commit | cb691264f012c552bac85a9fe352baa062cd81dd (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/getopt/small | |
| parent | 48ea53d4c114c948fa16fee5ec66de2552c93471 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/getopt/small')
| -rw-r--r-- | library/cpp/getopt/small/modchooser.cpp | 6 | ||||
| -rw-r--r-- | library/cpp/getopt/small/modchooser.h | 4 | 
2 files changed, 5 insertions, 5 deletions
| diff --git a/library/cpp/getopt/small/modchooser.cpp b/library/cpp/getopt/small/modchooser.cpp index 8b7cacd7eba..2fa5cfd0703 100644 --- a/library/cpp/getopt/small/modchooser.cpp +++ b/library/cpp/getopt/small/modchooser.cpp @@ -82,12 +82,12 @@ TModChooser::~TModChooser() = default;  void TModChooser::AddMode(const TString& mode, const TMainFunctionRawPtr func, const TString& description, bool hidden, bool noCompletion) {      AddMode(mode, TMainFunctionPtr(func), description, hidden, noCompletion); -}  +}  void TModChooser::AddMode(const TString& mode, const TMainFunctionRawPtrV func, const TString& description, bool hidden, bool noCompletion) {      AddMode(mode, TMainFunctionPtrV(func), description, hidden, noCompletion); -}  -  +} +  void TModChooser::AddMode(const TString& mode, const TMainFunctionPtr func, const TString& description, bool hidden, bool noCompletion) {      Wrappers.push_back(MakeHolder<PtrWrapper>(func));      AddMode(mode, Wrappers.back().Get(), description, hidden, noCompletion); diff --git a/library/cpp/getopt/small/modchooser.h b/library/cpp/getopt/small/modchooser.h index 7a7eb8ef236..0a8de6d50b5 100644 --- a/library/cpp/getopt/small/modchooser.h +++ b/library/cpp/getopt/small/modchooser.h @@ -6,8 +6,8 @@  #include <util/generic/string.h>  #include <util/generic/vector.h> -#include <functional>  -  +#include <functional> +  //! Mode function with vector of cli arguments.  using TMainFunctionPtrV = std::function<int(const TVector<TString>&)> ;  using TMainFunctionRawPtrV = int (*)(const TVector<TString>& argv); | 
