diff options
author | pnv1 <pnv1@yandex-team.ru> | 2022-02-10 16:50:19 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:19 +0300 |
commit | 5f48504f9120f1bd635dfd2819efab47e7a203a5 (patch) | |
tree | 985e314900d3af63f541801073ee21565381b5d1 /library/cpp/getopt/small | |
parent | 57d5924cfae7600e91d372034c64914e0a0b6396 (diff) | |
download | ydb-5f48504f9120f1bd635dfd2819efab47e7a203a5.tar.gz |
Restoring authorship annotation for <pnv1@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/getopt/small')
-rw-r--r-- | library/cpp/getopt/small/last_getopt_opts.cpp | 12 | ||||
-rw-r--r-- | library/cpp/getopt/small/last_getopt_opts.h | 12 |
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 03c432849f1..f567a2745ba 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 825b99c8712..4acce7ac5b5 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) { |