aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/small
diff options
context:
space:
mode:
authorpnv1 <pnv1@yandex-team.ru>2022-02-10 16:50:20 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:20 +0300
commit0689407cd3d1e44446526af0be1433d1c126788e (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/getopt/small
parent5f48504f9120f1bd635dfd2819efab47e7a203a5 (diff)
downloadydb-0689407cd3d1e44446526af0be1433d1c126788e.tar.gz
Restoring authorship annotation for <pnv1@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/getopt/small')
-rw-r--r--library/cpp/getopt/small/last_getopt_opts.cpp12
-rw-r--r--library/cpp/getopt/small/last_getopt_opts.h12
2 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/getopt/small/last_getopt_opts.cpp b/library/cpp/getopt/small/last_getopt_opts.cpp
index f567a2745ba..03c432849f1 100644
--- a/library/cpp/getopt/small/last_getopt_opts.cpp
+++ b/library/cpp/getopt/small/last_getopt_opts.cpp
@@ -313,12 +313,12 @@ namespace NLastGetopt {
}
void TOpts::PrintCmdLine(const TStringBuf& program, IOutputStream& os, const NColorizer::TColors& colors) const {
- os << colors.BoldColor() << "Usage" << colors.OldColor() << ": ";
- if (CustomUsage) {
- os << CustomUsage;
- } else {
- os << program << " ";
- }
+ os << colors.BoldColor() << "Usage" << colors.OldColor() << ": ";
+ if (CustomUsage) {
+ os << CustomUsage;
+ } else {
+ os << program << " ";
+ }
if (CustomCmdLineDescr) {
os << CustomCmdLineDescr << Endl;
return;
diff --git a/library/cpp/getopt/small/last_getopt_opts.h b/library/cpp/getopt/small/last_getopt_opts.h
index 4acce7ac5b5..825b99c8712 100644
--- a/library/cpp/getopt/small/last_getopt_opts.h
+++ b/library/cpp/getopt/small/last_getopt_opts.h
@@ -65,7 +65,7 @@ namespace NLastGetopt {
TString Title; // title of the help string
TString CustomCmdLineDescr; // user defined help string
- TString CustomUsage; // user defined usage string
+ TString CustomUsage; // user defined usage string
TVector<std::pair<TString, TString>> Sections; // additional help entries to print after usage
@@ -420,11 +420,11 @@ namespace NLastGetopt {
*
* @param usage new usage string
*/
- void SetCustomUsage(const TString& usage) {
- CustomUsage = usage;
- }
-
- /**
+ void SetCustomUsage(const TString& usage) {
+ CustomUsage = usage;
+ }
+
+ /**
* Add a section to print after the main usage spec.
*/
void AddSection(TString title, TString text) {