diff options
| author | Stanislav Kirillov <[email protected]> | 2022-02-10 16:46:07 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:07 +0300 | 
| commit | 92fe2b1e7bc79f7b95adef61714fc003f6ea4a1c (patch) | |
| tree | 817034f4ca57c9f841bb047ec94630c2e78a2b1d /library/cpp/getopt/small/modchooser.cpp | |
| parent | 53c76da6d9f6cc5a17f6029df396f0e3bc1ff47d (diff) | |
Restoring authorship annotation for Stanislav Kirillov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/getopt/small/modchooser.cpp')
| -rw-r--r-- | library/cpp/getopt/small/modchooser.cpp | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/getopt/small/modchooser.cpp b/library/cpp/getopt/small/modchooser.cpp index 2fa5cfd0703..ce8fc043a32 100644 --- a/library/cpp/getopt/small/modchooser.cpp +++ b/library/cpp/getopt/small/modchooser.cpp @@ -73,7 +73,7 @@ TModChooser::TModChooser()      : ModesHelpOption("-?") // Default help option in last_getopt      , VersionHandler(nullptr)      , ShowSeparated(true) -    , SvnRevisionOptionDisabled(false) +    , SvnRevisionOptionDisabled(false)       , PrintShortCommandInUsage(false)  {  } @@ -152,10 +152,10 @@ void TModChooser::SetPrintShortCommandInUsage(bool printShortCommandInUsage = fa      PrintShortCommandInUsage = printShortCommandInUsage;  } -void TModChooser::DisableSvnRevisionOption() { -    SvnRevisionOptionDisabled = true; -} - +void TModChooser::DisableSvnRevisionOption() {  +    SvnRevisionOptionDisabled = true;  +}  +   void TModChooser::AddCompletions(TString progName, const TString& name, bool hidden, bool noCompletion) {      if (CompletionsGenerator == nullptr) {          CompletionsGenerator = NLastGetopt::MakeCompletionMod(this, std::move(progName), name); @@ -188,7 +188,7 @@ int TModChooser::Run(const int argc, const char** argv) const {          VersionHandler();          return 0;      } -    if (!SvnRevisionOptionDisabled && modeName == "--svnrevision") { +    if (!SvnRevisionOptionDisabled && modeName == "--svnrevision") {           NLastGetopt::PrintVersionAndExit(nullptr);      } @@ -314,9 +314,9 @@ void TModChooser::PrintHelp(const TString& progName) const {      Cerr << "To get help for specific mode type '" << progName << " MODE " << ModesHelpOption << "'" << Endl;      if (VersionHandler)          Cerr << "To print program version type '" << progName << " --version'" << Endl; -    if (!SvnRevisionOptionDisabled) { -        Cerr << "To print svn revision type --svnrevision" << Endl; -    } +    if (!SvnRevisionOptionDisabled) {  +        Cerr << "To print svn revision type --svnrevision" << Endl;  +    }       return;  }  | 
