diff options
| author | thegeorg <[email protected]> | 2026-07-17 20:02:10 +0300 |
|---|---|---|
| committer | thegeorg <[email protected]> | 2026-07-17 22:23:20 +0300 |
| commit | 4a3634c81d134200825ad9db61bc73962b398fbd (patch) | |
| tree | 60f8ee3d93b1ef6e4a04a12962d610b0d7fbfe35 /library/cpp | |
| parent | b66c68095aaecd2908abf6da5907efbc33e19be8 (diff) | |
Make Ascii-related functions and StripString() constexpr
commit_hash:ff7ca9a2428930638288f8c0e92a303b8f620063
Diffstat (limited to 'library/cpp')
| -rw-r--r-- | library/cpp/getopt/small/last_getopt_opts.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/library/cpp/getopt/small/last_getopt_opts.h b/library/cpp/getopt/small/last_getopt_opts.h index fd0ef978c1f..868477ec79e 100644 --- a/library/cpp/getopt/small/last_getopt_opts.h +++ b/library/cpp/getopt/small/last_getopt_opts.h @@ -463,6 +463,24 @@ namespace NLastGetopt { } /** + * Add section with examples. + * + * @param examples text of this section + */ + void SetExamples(std::string_view examples) { + SetExamples(TString(examples)); + } + + /** + * Add section with examples. + * + * @param examples text of this section + */ + void SetExamples(const char* examples) { + SetExamples(TString(examples)); + } + + /** * Set minimal number of free args * * @param min new value |
