diff options
| author | tobo <[email protected]> | 2022-02-10 16:47:27 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:27 +0300 | 
| commit | 7fe839092527589b38f014d854c51565b3c1adfa (patch) | |
| tree | 309e97022d3530044b712b8f71318c78faf7856e /library/cpp/getopt/small | |
| parent | d0d68c395c10da4cb56a1c845504570a04d7893e (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/getopt/small')
| -rw-r--r-- | library/cpp/getopt/small/completer.cpp | 2 | ||||
| -rw-r--r-- | library/cpp/getopt/small/last_getopt_opt.cpp | 4 | ||||
| -rw-r--r-- | library/cpp/getopt/small/last_getopt_opts.cpp | 2 | ||||
| -rw-r--r-- | library/cpp/getopt/small/modchooser.h | 24 | 
4 files changed, 16 insertions, 16 deletions
| diff --git a/library/cpp/getopt/small/completer.cpp b/library/cpp/getopt/small/completer.cpp index 3fff684adbe..01169dc0815 100644 --- a/library/cpp/getopt/small/completer.cpp +++ b/library/cpp/getopt/small/completer.cpp @@ -219,7 +219,7 @@ namespace NLastGetopt::NComp {      namespace {          TCustomCompleter* Head = nullptr; -        TStringBuf SpecialFlag = "---CUSTOM-COMPLETION---"; +        TStringBuf SpecialFlag = "---CUSTOM-COMPLETION---";       }      void TCustomCompleter::FireCustomCompleter(int argc, const char** argv) { diff --git a/library/cpp/getopt/small/last_getopt_opt.cpp b/library/cpp/getopt/small/last_getopt_opt.cpp index 9a99437f4bd..841a499cb8d 100644 --- a/library/cpp/getopt/small/last_getopt_opt.cpp +++ b/library/cpp/getopt/small/last_getopt_opt.cpp @@ -8,8 +8,8 @@  #include <ctype.h>  namespace NLastGetopt { -    static const TStringBuf ExcludedShortNameChars = "= -\t\n"; -    static const TStringBuf ExcludedLongNameChars = "= \t\n"; +    static const TStringBuf ExcludedShortNameChars = "= -\t\n";  +    static const TStringBuf ExcludedLongNameChars = "= \t\n";       bool TOpt::NameIs(const TString& name) const {          for (const auto& next : LongNames_) { diff --git a/library/cpp/getopt/small/last_getopt_opts.cpp b/library/cpp/getopt/small/last_getopt_opts.cpp index 03c432849f1..efdf68eeccc 100644 --- a/library/cpp/getopt/small/last_getopt_opts.cpp +++ b/library/cpp/getopt/small/last_getopt_opts.cpp @@ -22,7 +22,7 @@ namespace NLastGetoptPrivate {  }  namespace NLastGetopt { -    static const TStringBuf SPad = "  "; +    static const TStringBuf SPad = "  ";       void PrintVersionAndExit(const TOptsParser*) {          Cout << (NLastGetoptPrivate::VersionString() ? NLastGetoptPrivate::VersionString() : "program version: not linked with library/cpp/getopt") << Endl; diff --git a/library/cpp/getopt/small/modchooser.h b/library/cpp/getopt/small/modchooser.h index 0a8de6d50b5..8e32423ab4c 100644 --- a/library/cpp/getopt/small/modchooser.h +++ b/library/cpp/getopt/small/modchooser.h @@ -9,12 +9,12 @@  #include <functional>  //! Mode function with vector of cli arguments. -using TMainFunctionPtrV = std::function<int(const TVector<TString>&)> ; -using TMainFunctionRawPtrV = int (*)(const TVector<TString>& argv); +using TMainFunctionPtrV = std::function<int(const TVector<TString>&)> ;  +using TMainFunctionRawPtrV = int (*)(const TVector<TString>& argv);   //! Mode function with classic argc and argv arguments. -using TMainFunctionPtr = std::function<int(int, const char**)> ; -using TMainFunctionRawPtr = int (*)(const int argc, const char** argv); +using TMainFunctionPtr = std::function<int(int, const char**)> ;  +using TMainFunctionRawPtr = int (*)(const int argc, const char** argv);   //! Mode class with vector of cli arguments.  class TMainClassV { @@ -26,7 +26,7 @@ public:  //! Mode class with classic argc and argv arguments.  class TMainClass {  public: -    virtual int operator()(int argc, const char** argv) = 0; +    virtual int operator()(int argc, const char** argv) = 0;       virtual ~TMainClass() = default;  }; @@ -47,10 +47,10 @@ public:      ~TModChooser();  public: -    void AddMode(const TString& mode, TMainFunctionRawPtr func, const TString& description, bool hidden = false, bool noCompletion = false); -    void AddMode(const TString& mode, TMainFunctionRawPtrV func, const TString& description, bool hidden = false, bool noCompletion = false); -    void AddMode(const TString& mode, TMainFunctionPtr func, const TString& description, bool hidden = false, bool noCompletion = false); -    void AddMode(const TString& mode, TMainFunctionPtrV func, const TString& description, bool hidden = false, bool noCompletion = false); +    void AddMode(const TString& mode, TMainFunctionRawPtr func, const TString& description, bool hidden = false, bool noCompletion = false);  +    void AddMode(const TString& mode, TMainFunctionRawPtrV func, const TString& description, bool hidden = false, bool noCompletion = false);  +    void AddMode(const TString& mode, TMainFunctionPtr func, const TString& description, bool hidden = false, bool noCompletion = false);  +    void AddMode(const TString& mode, TMainFunctionPtrV func, const TString& description, bool hidden = false, bool noCompletion = false);       void AddMode(const TString& mode, TMainClass* func, const TString& description, bool hidden = false, bool noCompletion = false);      void AddMode(const TString& mode, TMainClassV* func, const TString& description, bool hidden = false, bool noCompletion = false); @@ -95,7 +95,7 @@ public:       *      call it and return its return code.       *   4) If appropriate mode is not found - return non-zero code.       */ -    int Run(int argc, const char** argv) const; +    int Run(int argc, const char** argv) const;       //! Run appropriate mode. Same as Run(const int, const char**)      int Run(const TVector<TString>& argv) const; @@ -174,7 +174,7 @@ private:  //! Mode class that allows introspecting its console arguments.  class TMainClassArgs: public TMainClass {  public: -    int operator()(int argc, const char** argv) final; +    int operator()(int argc, const char** argv) final;   public:      //! Run this mode. @@ -197,7 +197,7 @@ private:  //! Mode class that uses sub-modes to dispatch commands further.  class TMainClassModes: public TMainClass {  public: -    int operator()(int argc, const char** argv) final; +    int operator()(int argc, const char** argv) final;   public:      //! Run this mode. | 
