Skip to content

Commit ef50bb3

Browse files
Spelling (#1101)
This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling) (which is an evolution of the script I used ages ago when I first made a PR here...). The misspellings have been reported at https://github.com/jsoref/CLI11/actions/runs/12194174338#summary-34017587518 The action reports that the changes in this PR would make it happy: https://github.com/jsoref/CLI11/actions/runs/12194174680#summary-34017588281 --------- Signed-off-by: Josh Soref <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b71106f commit ef50bb3

16 files changed

+37
-37
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ On the command line, options can be given as:
514514
- `-ffilename` (no space required)
515515
- `-abcf filename` (flags and option can be combined)
516516
- `--long` (long flag)
517-
- `--long_flag=true` (long flag with equals to override default value)
517+
- `--long_flag=true` (long flag with equals -- to override default value)
518518
- `--file filename` (space)
519519
- `--file=filename` (equals)
520520

@@ -1254,7 +1254,7 @@ formatter. An example of a TOML file:
12541254

12551255
```toml
12561256
# Comments are supported, using a #
1257-
# The default section is [default], case insensitive
1257+
# The default section is [default], case-insensitive
12581258

12591259
value = 1
12601260
value2 = 123_456 # a string with separators
@@ -1275,7 +1275,7 @@ or equivalently in INI format
12751275

12761276
```ini
12771277
; Comments are supported, using a ;
1278-
; The default section is [default], case insensitive
1278+
; The default section is [default], case-insensitive
12791279

12801280
value = 1
12811281
str = "A string"
@@ -1291,7 +1291,7 @@ sub.subcommand = true
12911291
Spaces before and after the name and argument are ignored. Multiple arguments
12921292
are separated by spaces. One set of quotes will be removed, preserving spaces
12931293
(the same way the command line works). Boolean options can be `true`, `on`, `1`,
1294-
`yes`, `enable`; or `false`, `off`, `0`, `no`, `disable` (case insensitive).
1294+
`yes`, `enable`; or `false`, `off`, `0`, `no`, `disable` (case-insensitive).
12951295
Sections (and `.` separated names) are treated as subcommands (note: this does
12961296
not necessarily mean that subcommand was passed, it just sets the "defaults").
12971297
You cannot set positional-only arguments. Subcommands can be triggered from
@@ -1618,7 +1618,7 @@ brief description of each is included here
16181618
- [formatter](https://github.com/CLIUtils/CLI11/blob/main/examples/formatter.cpp):
16191619
Illustrating usage of a custom formatter
16201620
- [groups](https://github.com/CLIUtils/CLI11/blob/main/examples/groups.cpp):
1621-
Example using groups of options for help grouping and a the timer helper class
1621+
Example using groups of options for help grouping and a timer helper class
16221622
- [inter_argument_order](https://github.com/CLIUtils/CLI11/blob/main/examples/inter_argument_order.cpp):
16231623
An app to practice mixing unlimited arguments, but still recover the original
16241624
order.
@@ -1665,10 +1665,10 @@ brief description of each is included here
16651665
16661666
To contribute, open an [issue][github issues] or [pull
16671667
request][github pull requests] on GitHub, or ask a question on [gitter][]. There
1668-
is also a short note to contributors [here](./.github/CONTRIBUTING.md). This
1669-
readme roughly follows the [Standard Readme Style][] and includes a mention of
1670-
almost every feature of the library. More complex features are documented in
1671-
more detail in the [CLI11 tutorial GitBook][gitbook].
1668+
is also a [short note to contributors](./.github/CONTRIBUTING.md). This readme
1669+
roughly follows the [Standard Readme Style][] and includes a mention of almost
1670+
every feature of the library. More complex features are documented in more
1671+
detail in the [CLI11 tutorial GitBook][gitbook].
16721672
16731673
This project was created by [Henry Schreiner](https://github.com/henryiii) and
16741674
major features were added by [Philip Top](https://github.com/phlptp). Special

book/chapters/config.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Here is an example configuration file, in
124124
125125
```toml
126126
# Comments are supported, using a #
127-
# The default section is [default], case insensitive
127+
# The default section is [default], case-insensitive
128128
129129
value = 1
130130
str = "A string"
@@ -141,7 +141,7 @@ Spaces before and after the name and argument are ignored. Multiple arguments
141141
are separated by spaces. One set of quotes will be removed, preserving spaces
142142
(the same way the command line works). Boolean options can be `true`, `on`, `1`,
143143
`y`, `t`, `+`, `yes`, `enable`; or `false`, `off`, `0`, `no`, `n`, `f`, `-`,
144-
`disable`, (case insensitive). Sections (and `.` separated names) are treated as
144+
`disable`, (case-insensitive). Sections (and `.` separated names) are treated as
145145
subcommands (note: this does not necessarily mean that subcommand was passed, it
146146
just sets the "defaults". If a subcommand is set to `configurable` then passing
147147
the subcommand using `[sub]` in a configuration file will trigger the
@@ -151,7 +151,7 @@ CLI11 also supports configuration file in INI format.
151151

152152
```ini
153153
; Comments are supported, using a ;
154-
; The default section is [default], case insensitive
154+
; The default section is [default], case-insensitive
155155

156156
value = 1
157157
str = "A string"
@@ -175,7 +175,7 @@ python doc strings.
175175

176176
```toml
177177
"""
178-
this is a multine
178+
this is a multiline
179179
comment
180180
"""
181181

book/chapters/flags.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ command line. If you use the same name twice, or if you use the same name in
115115
multiple flags, CLI11 will immediately throw a `CLI::ConstructionError`
116116
describing your problem (it will not wait until the parsing step).
117117
118-
If you want to make an option case insensitive, you can use the
118+
If you want to make an option case-insensitive, you can use the
119119
`->ignore_case()` method on the `CLI::Option` to do that. For example,
120120
121121
```cpp

book/chapters/subcommands.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ This would allow calling help such as:
176176

177177
### Positional Validation
178178

179-
Some arguments supplied on the command line may be legitamately applied to more
179+
Some arguments supplied on the command line may be legitimately applied to more
180180
than 1 positional argument. In this context enabling `positional_validation` on
181181
the application or subcommand will check any validators before applying the
182182
command line argument to the positional option. It is not an error to fail

cmake/CodeCoverage.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
# - Added the option for users to set the GCOVR_ADDITIONAL_ARGS variable to supply additional
7272
# flags to the gcovr command
7373
#
74-
# 2020-05-04, Mihchael Davis
74+
# 2020-05-04, Michael Davis
7575
# - Add -fprofile-abs-path to make gcno files contain absolute paths
7676
# - Fix BASE_DIRECTORY not working when defined
7777
# - Change BYPRODUCT from folder to index.html to stop ninja from complaining about double defines

docs/Doxyfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ QT_AUTOBRIEF = NO
206206
# tag to YES if you prefer the old behavior instead.
207207
#
208208
# Note that setting this tag to YES also means that rational rose comments are
209-
# not recognized any more.
209+
# not recognized anymore.
210210
# The default value is: NO.
211211

212212
MULTILINE_CPP_IS_BRIEF = NO
@@ -522,7 +522,7 @@ INTERNAL_DOCS = NO
522522
# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file
523523
# names in lower-case letters. If set to YES, upper-case letters are also
524524
# allowed. This is useful if you have classes or files whose names only differ
525-
# in case and if your file system supports case sensitive file names. Windows
525+
# in case and if your file system supports case-sensitive file names. Windows
526526
# and Mac users are advised to set this option to NO.
527527
# The default value is: system dependent.
528528

@@ -687,7 +687,7 @@ SHOW_NAMESPACES = YES
687687
# The FILE_VERSION_FILTER tag can be used to specify a program or script that
688688
# doxygen should invoke to get the current version for each file (typically from
689689
# the version control system). Doxygen will invoke the program by executing (via
690-
# popen()) the command command input-file, where command is the value of the
690+
# popen()) the command input-file, where command is the value of the
691691
# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
692692
# by doxygen. Whatever the program writes to standard output is used as the file
693693
# version. For an example see the documentation.
@@ -1496,7 +1496,7 @@ EXT_LINKS_IN_WINDOW = NO
14961496

14971497
FORMULA_FONTSIZE = 10
14981498

1499-
# Use the FORMULA_TRANPARENT tag to determine whether or not the images
1499+
# Use the FORMULA_TRANSPARENT tag to determine whether or not the images
15001500
# generated for formulas are transparent PNGs. Transparent PNGs are not
15011501
# supported properly for IE 6.0, but are supported on all modern browsers.
15021502
#

examples/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ add_test(NAME shapes_all COMMAND shapes circle 4.4 circle 10.7 rectangle 4 4 cir
131131
4.5 ++ rectangle 2.1 ++ circle 234.675)
132132
set_property(
133133
TEST shapes_all PROPERTY PASS_REGULAR_EXPRESSION "circle2" "circle4"
134-
"rectangle2 with edges [2.1,2.1]" "triangel1 with sides [4.5]")
134+
"rectangle2 with edges [2.1,2.1]" "triangle1 with sides [4.5]")
135135

136136
add_cli_exe(ranges ranges.cpp)
137137
add_test(NAME ranges_range COMMAND ranges --range 1 2 3)

include/CLI/App.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class App {
107107
bool allow_extras_{false};
108108

109109
/// If ignore, allow extra arguments in the ini file (ie, don't throw an error). INHERITABLE
110-
/// if error error on an extra argument, and if capture feed it to the app
110+
/// if error, error on an extra argument, and if capture feed it to the app
111111
config_extras_mode allow_config_extras_{config_extras_mode::ignore};
112112

113113
/// If true, cease processing on an unrecognized option (implies allow_extras) INHERITABLE
@@ -218,7 +218,7 @@ class App {
218218
/// Storage for subcommand list
219219
std::vector<App_p> subcommands_{};
220220

221-
/// If true, the program name is not case sensitive INHERITABLE
221+
/// If true, the program name is not case-sensitive INHERITABLE
222222
bool ignore_case_{false};
223223

224224
/// If true, the program should ignore underscores INHERITABLE
@@ -1216,7 +1216,7 @@ class App {
12161216
/// Get a display name for an app
12171217
CLI11_NODISCARD std::string get_display_name(bool with_aliases = false) const;
12181218

1219-
/// Check the name, case insensitive and underscore insensitive if set
1219+
/// Check the name, case-insensitive and underscore insensitive if set
12201220
CLI11_NODISCARD bool check_name(std::string name_to_check) const;
12211221

12221222
/// Get the groups available directly from this option (in order)

include/CLI/Error.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ class HorribleError : public ParseError {
347347

348348
// After parsing
349349

350-
/// Thrown when counting a non-existent option
350+
/// Thrown when counting a nonexistent option
351351
class OptionNotFound : public Error {
352352
CLI11_ERROR_DEF(Error, OptionNotFound)
353353
explicit OptionNotFound(std::string name) : OptionNotFound(name + " not found", ExitCodes::OptionNotFound) {}

include/CLI/StringTools.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ CLI11_INLINE bool has_escapable_character(const std::string &str);
243243

244244
/// @brief escape all escapable characters
245245
/// @param str the string to escape
246-
/// @return a string with the escapble characters escaped with '\'
246+
/// @return a string with the escapable characters escaped with '\'
247247
CLI11_INLINE std::string add_escaped_characters(const std::string &str);
248248

249249
/// @brief replace the escaped characters with their equivalent
@@ -261,7 +261,7 @@ CLI11_INLINE std::string extract_binary_string(const std::string &escaped_string
261261
CLI11_INLINE bool process_quoted_string(std::string &str, char string_char = '\"', char literal_char = '\'');
262262

263263
/// This function formats the given text as a paragraph with fixed width and applies correct line wrapping
264-
/// with a custom line prefix. The paragraph will get streamed to the given ostrean.
264+
/// with a custom line prefix. The paragraph will get streamed to the given ostream.
265265
CLI11_INLINE std::ostream &streamOutAsParagraph(std::ostream &out,
266266
const std::string &text,
267267
std::size_t paragraphWidth,

include/CLI/TypeTools.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ struct pair_adaptor<
163163
}
164164
};
165165

166-
// Warning is suppressed due to "bug" in gcc<5.0 and gcc 7.0 with c++17 enabled that generates a Wnarrowing warning
166+
// Warning is suppressed due to "bug" in gcc<5.0 and gcc 7.0 with c++17 enabled that generates a -Wnarrowing warning
167167
// in the unevaluated context even if the function that was using this wasn't used. The standard says narrowing in
168168
// brace initialization shouldn't be allowed but for backwards compatibility gcc allows it in some contexts. It is a
169169
// little fuzzy what happens in template constructs and I think that was something GCC took a little while to work out.

include/CLI/impl/Config_inl.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ inline std::vector<ConfigItem> ConfigBase::from_config(std::istream &input) cons
331331
item = detail::trim_copy(citems.front());
332332
}
333333
if(mlquote) {
334-
// mutliline string
334+
// multiline string
335335
auto keyChar = item.front();
336336
item = buffer.substr(delimiter_pos + 1, std::string::npos);
337337
detail::ltrim(item);

single-include/meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Because Meson does not allow outputs to be placed in subfolders, we must have
2-
# meson.build here when generating the single file header so that it is placced
2+
# meson.build here when generating the single file header so that it is placed
33
# in the correct location.
44

55
pymod = import('python')

tests/HelpTest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ TEST_CASE("THelp: longLineAlignment", "[help]") {
795795
int i{0};
796796

797797
app.add_option("-i,--int,--int_very_long_option_name_that_just_keeps_going_on_and_on_and_on_and_on_and_on_possibly_"
798-
"to_infitinty,--and_another_long_name_just_for_fun",
798+
"to_infinity,--and_another_long_name_just_for_fun",
799799
i,
800800
long_string);
801801

@@ -820,7 +820,7 @@ TEST_CASE("THelp: longPositional", "[help]") {
820820
int i{0};
821821

822822
app.add_option("int_very_long_option_name_that_just_keeps_going_on_and_on_and_on_and_on_and_on_possibly_"
823-
"to_infitinty",
823+
"to_infinity",
824824
i,
825825
long_string);
826826

tests/HelpersTest.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ TEST_CASE("StringTools: Validation", "[helpers]") {
250250
CHECK_FALSE(CLI::detail::isalpha("test2"));
251251
}
252252

253-
TEST_CASE("StringTools: binaryEscapseConversion", "[helpers]") {
253+
TEST_CASE("StringTools: binaryEscapeConversion", "[helpers]") {
254254
std::string testString("string1");
255255
std::string estring = CLI::detail::binary_escape_string(testString);
256256
CHECK(testString == estring);
@@ -285,7 +285,7 @@ TEST_CASE("StringTools: binaryEscapseConversion", "[helpers]") {
285285
CHECK(rstring == rstring2);
286286
}
287287

288-
TEST_CASE("StringTools: binaryEscapseConversion2", "[helpers]") {
288+
TEST_CASE("StringTools: binaryEscapeConversion2", "[helpers]") {
289289
std::string testString;
290290
testString.push_back(0);
291291
testString.push_back(0);
@@ -1345,7 +1345,7 @@ TEST_CASE("Types: TypeNameStrings", "[helpers]") {
13451345
auto wsclass = CLI::detail::classify_object<std::wstring>::value;
13461346
CHECK(CLI::detail::object_category::wstring_assignable == wsclass);
13471347

1348-
#if defined CLI11_HAS_FILEYSTEM && CLI11_HAS_FILESYSTEM > 0 && defined(_MSC_VER)
1348+
#if defined CLI11_HAS_FILESYSTEM && CLI11_HAS_FILESYSTEM > 0 && defined(_MSC_VER)
13491349
auto fspclass = CLI::detail::classify_object<std::filesystem::path>::value;
13501350
CHECK(CLI::detail::object_category::wstring_assignable == fspclass);
13511351
#endif

tests/SubcommandTest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,7 @@ TEST_CASE_METHOD(TApp, "DotNotationSubcommandSingleChar", "[subcom]") {
20912091
CHECK(subs.front()->get_name() == "sub2");
20922092
}
20932093

2094-
TEST_CASE_METHOD(TApp, "DotNotationSubcommandRecusive", "[subcom]") {
2094+
TEST_CASE_METHOD(TApp, "DotNotationSubcommandRecursive", "[subcom]") {
20952095
std::string v1, v2, v3, vbase;
20962096

20972097
auto *sub1 = app.add_subcommand("sub1");
@@ -2119,7 +2119,7 @@ TEST_CASE_METHOD(TApp, "DotNotationSubcommandRecusive", "[subcom]") {
21192119
CHECK(extras.front() == "--sub1.sub2.bob");
21202120
}
21212121

2122-
TEST_CASE_METHOD(TApp, "DotNotationSubcommandRecusive2", "[subcom]") {
2122+
TEST_CASE_METHOD(TApp, "DotNotationSubcommandRecursive2", "[subcom]") {
21232123
std::string v1, v2, v3, vbase;
21242124

21252125
auto *sub1 = app.add_subcommand("sub1");

0 commit comments

Comments
 (0)