diff options
| author | ponasenko-rs <[email protected]> | 2026-06-15 18:56:06 +0300 |
|---|---|---|
| committer | ponasenko-rs <[email protected]> | 2026-06-15 19:56:48 +0300 |
| commit | 20745c2653a72235e34f3cf5aecb414918c8ce6f (patch) | |
| tree | e77639fbc051f16db0f37270cf3caaa70dd3b5a0 /library/cpp | |
| parent | 092db2f0c7a7fafbdac4db1516fbd0bb89960947 (diff) | |
Fix some typos in library/cpp/getopt/small
commit_hash:35d60580ca855d25f47b96ec20edccdae29d3bf5
Diffstat (limited to 'library/cpp')
| -rw-r--r-- | library/cpp/getopt/small/last_getopt_opt.h | 8 | ||||
| -rw-r--r-- | library/cpp/getopt/small/last_getopt_opts.h | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/getopt/small/last_getopt_opt.h b/library/cpp/getopt/small/last_getopt_opt.h index 7d6ae6b8016..67a937bdb13 100644 --- a/library/cpp/getopt/small/last_getopt_opt.h +++ b/library/cpp/getopt/small/last_getopt_opt.h @@ -42,12 +42,12 @@ namespace NLastGetopt { * argument parse politics: no/optional/required/ * option existence: required or optional * handlers. See detailed documentation: <TODO:link> - * default value: if the option has argument, but the option is ommited, + * default value: if the option has argument, but the option is omitted, * then the <default value> is used as the value of the argument * optional value: if the option has optional-argument, the option is present in parsed string, * but the argument is omitted, then <optional value is used> - * in case of "not given <optional value>, omited optional argument" the <default value> is used - * user value: allows to store arbitary pointer for handlers + * in case of "not given <optional value>, omitted optional argument" the <default value> is used + * user value: allows to store arbitrary pointer for handlers */ class TOpt { public: @@ -100,7 +100,7 @@ namespace NLastGetopt { /** * Checks if given string can be a long name * @param name string to check - * @param c if given, the first bad charecter will be saved in c + * @param c if given, the first bad character will be saved in c */ static bool IsAllowedLongName(const TString& name, unsigned char* c = nullptr); diff --git a/library/cpp/getopt/small/last_getopt_opts.h b/library/cpp/getopt/small/last_getopt_opts.h index abfc79425f8..fd0ef978c1f 100644 --- a/library/cpp/getopt/small/last_getopt_opts.h +++ b/library/cpp/getopt/small/last_getopt_opts.h @@ -28,7 +28,7 @@ namespace NLastGetopt { * the special string " -- " will be treated as end of named * options: all options after it will be parsed as free args * if PERMUTE is choosen, arguments will be rearranged in correct order, - * if RETURN_IN_ORDER is choosen, all free args will be ommited (TODO: looks very strange) + * if RETURN_IN_ORDER is choosen, all free args will be omitted (TODO: looks very strange) * - Using '+' as a prefix instead '--' for long names * - Using "-" as a prefix for both short and long names * - Allowing unknown options @@ -49,7 +49,7 @@ namespace NLastGetopt { bool AllowSingleDashForLong_ = false; // bool AllowPlusForLong_ = false; // using '+' instead '--' for long options - //Allows unknwon options: + //Allows unknown options: bool AllowUnknownCharOptions_ = false; bool AllowUnknownLongOptions_ = false; @@ -78,7 +78,7 @@ namespace NLastGetopt { /** * Constructs TOpts from string as in getopt(3) and - * additionally adds help option (for '?') and svn-verstion option (for 'V') + * additionally adds help option (for '?') and svn-version option (for 'V') */ static TOpts Default(const TStringBuf& optstring = TStringBuf()) { TOpts opts(optstring); @@ -92,7 +92,7 @@ namespace NLastGetopt { * Throws TConfException if validation failed. * Check consist of: * -not intersecting of names - * -compability of settings, that responsable for freeArgs parsing + * -compatibility of settings, that responsible for freeArgs parsing */ void Validate() const; @@ -549,7 +549,7 @@ namespace NLastGetopt { /** * Legacy, don't use. Same as `SetTrailingArgTitle`. - * Older versions of lastgetopt didn't have destinction between default title and title + * Older versions of lastgetopt didn't have distinction between default title and title * for the trailing argument. */ void SetFreeArgDefaultTitle(const TString& title, const TString& help = TString()) { |
