aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt
diff options
context:
space:
mode:
authorStanislav Kirillov <staskirillov@gmail.com>2022-02-10 16:46:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:08 +0300
commitcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/getopt
parent92fe2b1e7bc79f7b95adef61714fc003f6ea4a1c (diff)
downloadydb-cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134.tar.gz
Restoring authorship annotation for Stanislav Kirillov <staskirillov@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/getopt')
-rw-r--r--library/cpp/getopt/small/modchooser.cpp18
-rw-r--r--library/cpp/getopt/small/modchooser.h10
2 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/getopt/small/modchooser.cpp b/library/cpp/getopt/small/modchooser.cpp
index ce8fc043a3..2fa5cfd070 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;
}
diff --git a/library/cpp/getopt/small/modchooser.h b/library/cpp/getopt/small/modchooser.h
index 54ccbb2e28..0a8de6d50b 100644
--- a/library/cpp/getopt/small/modchooser.h
+++ b/library/cpp/getopt/small/modchooser.h
@@ -80,8 +80,8 @@ public:
//! Set short command representation in Usage block
void SetPrintShortCommandInUsage(bool printShortCommandInUsage);
- void DisableSvnRevisionOption();
-
+ void DisableSvnRevisionOption();
+
void AddCompletions(TString progName, const TString& name = "completion", bool hidden = false, bool noCompletion = false);
/*! Run appropriate mode.
@@ -155,9 +155,9 @@ private:
//! When set to true, show descriptions unsorted and display separators
bool ShowSeparated;
- //! When set to true, disables --svnrevision option, useful for opensource (git hosted) projects
- bool SvnRevisionOptionDisabled;
-
+ //! When set to true, disables --svnrevision option, useful for opensource (git hosted) projects
+ bool SvnRevisionOptionDisabled;
+
//! When true - will print only 'mode name' in 'Usage' block
bool PrintShortCommandInUsage;