mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-29 12:13:52 +00:00
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 <2119212+jsoref@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
b71106f870
commit
ef50bb35c3
18
README.md
18
README.md
@ -514,7 +514,7 @@ On the command line, options can be given as:
|
|||||||
- `-ffilename` (no space required)
|
- `-ffilename` (no space required)
|
||||||
- `-abcf filename` (flags and option can be combined)
|
- `-abcf filename` (flags and option can be combined)
|
||||||
- `--long` (long flag)
|
- `--long` (long flag)
|
||||||
- `--long_flag=true` (long flag with equals to override default value)
|
- `--long_flag=true` (long flag with equals -- to override default value)
|
||||||
- `--file filename` (space)
|
- `--file filename` (space)
|
||||||
- `--file=filename` (equals)
|
- `--file=filename` (equals)
|
||||||
|
|
||||||
@ -1254,7 +1254,7 @@ formatter. An example of a TOML file:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
# Comments are supported, using a #
|
# Comments are supported, using a #
|
||||||
# The default section is [default], case insensitive
|
# The default section is [default], case-insensitive
|
||||||
|
|
||||||
value = 1
|
value = 1
|
||||||
value2 = 123_456 # a string with separators
|
value2 = 123_456 # a string with separators
|
||||||
@ -1275,7 +1275,7 @@ or equivalently in INI format
|
|||||||
|
|
||||||
```ini
|
```ini
|
||||||
; Comments are supported, using a ;
|
; Comments are supported, using a ;
|
||||||
; The default section is [default], case insensitive
|
; The default section is [default], case-insensitive
|
||||||
|
|
||||||
value = 1
|
value = 1
|
||||||
str = "A string"
|
str = "A string"
|
||||||
@ -1291,7 +1291,7 @@ sub.subcommand = true
|
|||||||
Spaces before and after the name and argument are ignored. Multiple arguments
|
Spaces before and after the name and argument are ignored. Multiple arguments
|
||||||
are separated by spaces. One set of quotes will be removed, preserving spaces
|
are separated by spaces. One set of quotes will be removed, preserving spaces
|
||||||
(the same way the command line works). Boolean options can be `true`, `on`, `1`,
|
(the same way the command line works). Boolean options can be `true`, `on`, `1`,
|
||||||
`yes`, `enable`; or `false`, `off`, `0`, `no`, `disable` (case insensitive).
|
`yes`, `enable`; or `false`, `off`, `0`, `no`, `disable` (case-insensitive).
|
||||||
Sections (and `.` separated names) are treated as subcommands (note: this does
|
Sections (and `.` separated names) are treated as subcommands (note: this does
|
||||||
not necessarily mean that subcommand was passed, it just sets the "defaults").
|
not necessarily mean that subcommand was passed, it just sets the "defaults").
|
||||||
You cannot set positional-only arguments. Subcommands can be triggered from
|
You cannot set positional-only arguments. Subcommands can be triggered from
|
||||||
@ -1618,7 +1618,7 @@ brief description of each is included here
|
|||||||
- [formatter](https://github.com/CLIUtils/CLI11/blob/main/examples/formatter.cpp):
|
- [formatter](https://github.com/CLIUtils/CLI11/blob/main/examples/formatter.cpp):
|
||||||
Illustrating usage of a custom formatter
|
Illustrating usage of a custom formatter
|
||||||
- [groups](https://github.com/CLIUtils/CLI11/blob/main/examples/groups.cpp):
|
- [groups](https://github.com/CLIUtils/CLI11/blob/main/examples/groups.cpp):
|
||||||
Example using groups of options for help grouping and a the timer helper class
|
Example using groups of options for help grouping and a timer helper class
|
||||||
- [inter_argument_order](https://github.com/CLIUtils/CLI11/blob/main/examples/inter_argument_order.cpp):
|
- [inter_argument_order](https://github.com/CLIUtils/CLI11/blob/main/examples/inter_argument_order.cpp):
|
||||||
An app to practice mixing unlimited arguments, but still recover the original
|
An app to practice mixing unlimited arguments, but still recover the original
|
||||||
order.
|
order.
|
||||||
@ -1665,10 +1665,10 @@ brief description of each is included here
|
|||||||
|
|
||||||
To contribute, open an [issue][github issues] or [pull
|
To contribute, open an [issue][github issues] or [pull
|
||||||
request][github pull requests] on GitHub, or ask a question on [gitter][]. There
|
request][github pull requests] on GitHub, or ask a question on [gitter][]. There
|
||||||
is also a short note to contributors [here](./.github/CONTRIBUTING.md). This
|
is also a [short note to contributors](./.github/CONTRIBUTING.md). This readme
|
||||||
readme roughly follows the [Standard Readme Style][] and includes a mention of
|
roughly follows the [Standard Readme Style][] and includes a mention of almost
|
||||||
almost every feature of the library. More complex features are documented in
|
every feature of the library. More complex features are documented in more
|
||||||
more detail in the [CLI11 tutorial GitBook][gitbook].
|
detail in the [CLI11 tutorial GitBook][gitbook].
|
||||||
|
|
||||||
This project was created by [Henry Schreiner](https://github.com/henryiii) and
|
This project was created by [Henry Schreiner](https://github.com/henryiii) and
|
||||||
major features were added by [Philip Top](https://github.com/phlptp). Special
|
major features were added by [Philip Top](https://github.com/phlptp). Special
|
||||||
|
@ -124,7 +124,7 @@ Here is an example configuration file, in
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
# Comments are supported, using a #
|
# Comments are supported, using a #
|
||||||
# The default section is [default], case insensitive
|
# The default section is [default], case-insensitive
|
||||||
|
|
||||||
value = 1
|
value = 1
|
||||||
str = "A string"
|
str = "A string"
|
||||||
@ -141,7 +141,7 @@ Spaces before and after the name and argument are ignored. Multiple arguments
|
|||||||
are separated by spaces. One set of quotes will be removed, preserving spaces
|
are separated by spaces. One set of quotes will be removed, preserving spaces
|
||||||
(the same way the command line works). Boolean options can be `true`, `on`, `1`,
|
(the same way the command line works). Boolean options can be `true`, `on`, `1`,
|
||||||
`y`, `t`, `+`, `yes`, `enable`; or `false`, `off`, `0`, `no`, `n`, `f`, `-`,
|
`y`, `t`, `+`, `yes`, `enable`; or `false`, `off`, `0`, `no`, `n`, `f`, `-`,
|
||||||
`disable`, (case insensitive). Sections (and `.` separated names) are treated as
|
`disable`, (case-insensitive). Sections (and `.` separated names) are treated as
|
||||||
subcommands (note: this does not necessarily mean that subcommand was passed, it
|
subcommands (note: this does not necessarily mean that subcommand was passed, it
|
||||||
just sets the "defaults". If a subcommand is set to `configurable` then passing
|
just sets the "defaults". If a subcommand is set to `configurable` then passing
|
||||||
the subcommand using `[sub]` in a configuration file will trigger the
|
the subcommand using `[sub]` in a configuration file will trigger the
|
||||||
@ -151,7 +151,7 @@ CLI11 also supports configuration file in INI format.
|
|||||||
|
|
||||||
```ini
|
```ini
|
||||||
; Comments are supported, using a ;
|
; Comments are supported, using a ;
|
||||||
; The default section is [default], case insensitive
|
; The default section is [default], case-insensitive
|
||||||
|
|
||||||
value = 1
|
value = 1
|
||||||
str = "A string"
|
str = "A string"
|
||||||
@ -175,7 +175,7 @@ python doc strings.
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
"""
|
"""
|
||||||
this is a multine
|
this is a multiline
|
||||||
comment
|
comment
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ command line. If you use the same name twice, or if you use the same name in
|
|||||||
multiple flags, CLI11 will immediately throw a `CLI::ConstructionError`
|
multiple flags, CLI11 will immediately throw a `CLI::ConstructionError`
|
||||||
describing your problem (it will not wait until the parsing step).
|
describing your problem (it will not wait until the parsing step).
|
||||||
|
|
||||||
If you want to make an option case insensitive, you can use the
|
If you want to make an option case-insensitive, you can use the
|
||||||
`->ignore_case()` method on the `CLI::Option` to do that. For example,
|
`->ignore_case()` method on the `CLI::Option` to do that. For example,
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
|
@ -176,7 +176,7 @@ This would allow calling help such as:
|
|||||||
|
|
||||||
### Positional Validation
|
### Positional Validation
|
||||||
|
|
||||||
Some arguments supplied on the command line may be legitamately applied to more
|
Some arguments supplied on the command line may be legitimately applied to more
|
||||||
than 1 positional argument. In this context enabling `positional_validation` on
|
than 1 positional argument. In this context enabling `positional_validation` on
|
||||||
the application or subcommand will check any validators before applying the
|
the application or subcommand will check any validators before applying the
|
||||||
command line argument to the positional option. It is not an error to fail
|
command line argument to the positional option. It is not an error to fail
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
# - Added the option for users to set the GCOVR_ADDITIONAL_ARGS variable to supply additional
|
# - Added the option for users to set the GCOVR_ADDITIONAL_ARGS variable to supply additional
|
||||||
# flags to the gcovr command
|
# flags to the gcovr command
|
||||||
#
|
#
|
||||||
# 2020-05-04, Mihchael Davis
|
# 2020-05-04, Michael Davis
|
||||||
# - Add -fprofile-abs-path to make gcno files contain absolute paths
|
# - Add -fprofile-abs-path to make gcno files contain absolute paths
|
||||||
# - Fix BASE_DIRECTORY not working when defined
|
# - Fix BASE_DIRECTORY not working when defined
|
||||||
# - Change BYPRODUCT from folder to index.html to stop ninja from complaining about double defines
|
# - Change BYPRODUCT from folder to index.html to stop ninja from complaining about double defines
|
||||||
|
@ -206,7 +206,7 @@ QT_AUTOBRIEF = NO
|
|||||||
# tag to YES if you prefer the old behavior instead.
|
# tag to YES if you prefer the old behavior instead.
|
||||||
#
|
#
|
||||||
# Note that setting this tag to YES also means that rational rose comments are
|
# Note that setting this tag to YES also means that rational rose comments are
|
||||||
# not recognized any more.
|
# not recognized anymore.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
MULTILINE_CPP_IS_BRIEF = NO
|
MULTILINE_CPP_IS_BRIEF = NO
|
||||||
@ -522,7 +522,7 @@ INTERNAL_DOCS = NO
|
|||||||
# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file
|
# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file
|
||||||
# names in lower-case letters. If set to YES, upper-case letters are also
|
# names in lower-case letters. If set to YES, upper-case letters are also
|
||||||
# allowed. This is useful if you have classes or files whose names only differ
|
# allowed. This is useful if you have classes or files whose names only differ
|
||||||
# in case and if your file system supports case sensitive file names. Windows
|
# in case and if your file system supports case-sensitive file names. Windows
|
||||||
# and Mac users are advised to set this option to NO.
|
# and Mac users are advised to set this option to NO.
|
||||||
# The default value is: system dependent.
|
# The default value is: system dependent.
|
||||||
|
|
||||||
@ -687,7 +687,7 @@ SHOW_NAMESPACES = YES
|
|||||||
# The FILE_VERSION_FILTER tag can be used to specify a program or script that
|
# The FILE_VERSION_FILTER tag can be used to specify a program or script that
|
||||||
# doxygen should invoke to get the current version for each file (typically from
|
# doxygen should invoke to get the current version for each file (typically from
|
||||||
# the version control system). Doxygen will invoke the program by executing (via
|
# the version control system). Doxygen will invoke the program by executing (via
|
||||||
# popen()) the command command input-file, where command is the value of the
|
# popen()) the command input-file, where command is the value of the
|
||||||
# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
|
# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
|
||||||
# by doxygen. Whatever the program writes to standard output is used as the file
|
# by doxygen. Whatever the program writes to standard output is used as the file
|
||||||
# version. For an example see the documentation.
|
# version. For an example see the documentation.
|
||||||
@ -1496,7 +1496,7 @@ EXT_LINKS_IN_WINDOW = NO
|
|||||||
|
|
||||||
FORMULA_FONTSIZE = 10
|
FORMULA_FONTSIZE = 10
|
||||||
|
|
||||||
# Use the FORMULA_TRANPARENT tag to determine whether or not the images
|
# Use the FORMULA_TRANSPARENT tag to determine whether or not the images
|
||||||
# generated for formulas are transparent PNGs. Transparent PNGs are not
|
# generated for formulas are transparent PNGs. Transparent PNGs are not
|
||||||
# supported properly for IE 6.0, but are supported on all modern browsers.
|
# supported properly for IE 6.0, but are supported on all modern browsers.
|
||||||
#
|
#
|
||||||
|
@ -131,7 +131,7 @@ add_test(NAME shapes_all COMMAND shapes circle 4.4 circle 10.7 rectangle 4 4 cir
|
|||||||
4.5 ++ rectangle 2.1 ++ circle 234.675)
|
4.5 ++ rectangle 2.1 ++ circle 234.675)
|
||||||
set_property(
|
set_property(
|
||||||
TEST shapes_all PROPERTY PASS_REGULAR_EXPRESSION "circle2" "circle4"
|
TEST shapes_all PROPERTY PASS_REGULAR_EXPRESSION "circle2" "circle4"
|
||||||
"rectangle2 with edges [2.1,2.1]" "triangel1 with sides [4.5]")
|
"rectangle2 with edges [2.1,2.1]" "triangle1 with sides [4.5]")
|
||||||
|
|
||||||
add_cli_exe(ranges ranges.cpp)
|
add_cli_exe(ranges ranges.cpp)
|
||||||
add_test(NAME ranges_range COMMAND ranges --range 1 2 3)
|
add_test(NAME ranges_range COMMAND ranges --range 1 2 3)
|
||||||
|
@ -107,7 +107,7 @@ class App {
|
|||||||
bool allow_extras_{false};
|
bool allow_extras_{false};
|
||||||
|
|
||||||
/// If ignore, allow extra arguments in the ini file (ie, don't throw an error). INHERITABLE
|
/// If ignore, allow extra arguments in the ini file (ie, don't throw an error). INHERITABLE
|
||||||
/// if error error on an extra argument, and if capture feed it to the app
|
/// if error, error on an extra argument, and if capture feed it to the app
|
||||||
config_extras_mode allow_config_extras_{config_extras_mode::ignore};
|
config_extras_mode allow_config_extras_{config_extras_mode::ignore};
|
||||||
|
|
||||||
/// If true, cease processing on an unrecognized option (implies allow_extras) INHERITABLE
|
/// If true, cease processing on an unrecognized option (implies allow_extras) INHERITABLE
|
||||||
@ -218,7 +218,7 @@ class App {
|
|||||||
/// Storage for subcommand list
|
/// Storage for subcommand list
|
||||||
std::vector<App_p> subcommands_{};
|
std::vector<App_p> subcommands_{};
|
||||||
|
|
||||||
/// If true, the program name is not case sensitive INHERITABLE
|
/// If true, the program name is not case-sensitive INHERITABLE
|
||||||
bool ignore_case_{false};
|
bool ignore_case_{false};
|
||||||
|
|
||||||
/// If true, the program should ignore underscores INHERITABLE
|
/// If true, the program should ignore underscores INHERITABLE
|
||||||
@ -1216,7 +1216,7 @@ class App {
|
|||||||
/// Get a display name for an app
|
/// Get a display name for an app
|
||||||
CLI11_NODISCARD std::string get_display_name(bool with_aliases = false) const;
|
CLI11_NODISCARD std::string get_display_name(bool with_aliases = false) const;
|
||||||
|
|
||||||
/// Check the name, case insensitive and underscore insensitive if set
|
/// Check the name, case-insensitive and underscore insensitive if set
|
||||||
CLI11_NODISCARD bool check_name(std::string name_to_check) const;
|
CLI11_NODISCARD bool check_name(std::string name_to_check) const;
|
||||||
|
|
||||||
/// Get the groups available directly from this option (in order)
|
/// Get the groups available directly from this option (in order)
|
||||||
|
@ -347,7 +347,7 @@ class HorribleError : public ParseError {
|
|||||||
|
|
||||||
// After parsing
|
// After parsing
|
||||||
|
|
||||||
/// Thrown when counting a non-existent option
|
/// Thrown when counting a nonexistent option
|
||||||
class OptionNotFound : public Error {
|
class OptionNotFound : public Error {
|
||||||
CLI11_ERROR_DEF(Error, OptionNotFound)
|
CLI11_ERROR_DEF(Error, OptionNotFound)
|
||||||
explicit OptionNotFound(std::string name) : OptionNotFound(name + " not found", ExitCodes::OptionNotFound) {}
|
explicit OptionNotFound(std::string name) : OptionNotFound(name + " not found", ExitCodes::OptionNotFound) {}
|
||||||
|
@ -243,7 +243,7 @@ CLI11_INLINE bool has_escapable_character(const std::string &str);
|
|||||||
|
|
||||||
/// @brief escape all escapable characters
|
/// @brief escape all escapable characters
|
||||||
/// @param str the string to escape
|
/// @param str the string to escape
|
||||||
/// @return a string with the escapble characters escaped with '\'
|
/// @return a string with the escapable characters escaped with '\'
|
||||||
CLI11_INLINE std::string add_escaped_characters(const std::string &str);
|
CLI11_INLINE std::string add_escaped_characters(const std::string &str);
|
||||||
|
|
||||||
/// @brief replace the escaped characters with their equivalent
|
/// @brief replace the escaped characters with their equivalent
|
||||||
@ -261,7 +261,7 @@ CLI11_INLINE std::string extract_binary_string(const std::string &escaped_string
|
|||||||
CLI11_INLINE bool process_quoted_string(std::string &str, char string_char = '\"', char literal_char = '\'');
|
CLI11_INLINE bool process_quoted_string(std::string &str, char string_char = '\"', char literal_char = '\'');
|
||||||
|
|
||||||
/// This function formats the given text as a paragraph with fixed width and applies correct line wrapping
|
/// This function formats the given text as a paragraph with fixed width and applies correct line wrapping
|
||||||
/// with a custom line prefix. The paragraph will get streamed to the given ostrean.
|
/// with a custom line prefix. The paragraph will get streamed to the given ostream.
|
||||||
CLI11_INLINE std::ostream &streamOutAsParagraph(std::ostream &out,
|
CLI11_INLINE std::ostream &streamOutAsParagraph(std::ostream &out,
|
||||||
const std::string &text,
|
const std::string &text,
|
||||||
std::size_t paragraphWidth,
|
std::size_t paragraphWidth,
|
||||||
|
@ -163,7 +163,7 @@ struct pair_adaptor<
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Warning is suppressed due to "bug" in gcc<5.0 and gcc 7.0 with c++17 enabled that generates a Wnarrowing warning
|
// Warning is suppressed due to "bug" in gcc<5.0 and gcc 7.0 with c++17 enabled that generates a -Wnarrowing warning
|
||||||
// in the unevaluated context even if the function that was using this wasn't used. The standard says narrowing in
|
// in the unevaluated context even if the function that was using this wasn't used. The standard says narrowing in
|
||||||
// brace initialization shouldn't be allowed but for backwards compatibility gcc allows it in some contexts. It is a
|
// brace initialization shouldn't be allowed but for backwards compatibility gcc allows it in some contexts. It is a
|
||||||
// little fuzzy what happens in template constructs and I think that was something GCC took a little while to work out.
|
// little fuzzy what happens in template constructs and I think that was something GCC took a little while to work out.
|
||||||
|
@ -331,7 +331,7 @@ inline std::vector<ConfigItem> ConfigBase::from_config(std::istream &input) cons
|
|||||||
item = detail::trim_copy(citems.front());
|
item = detail::trim_copy(citems.front());
|
||||||
}
|
}
|
||||||
if(mlquote) {
|
if(mlquote) {
|
||||||
// mutliline string
|
// multiline string
|
||||||
auto keyChar = item.front();
|
auto keyChar = item.front();
|
||||||
item = buffer.substr(delimiter_pos + 1, std::string::npos);
|
item = buffer.substr(delimiter_pos + 1, std::string::npos);
|
||||||
detail::ltrim(item);
|
detail::ltrim(item);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Because Meson does not allow outputs to be placed in subfolders, we must have
|
# Because Meson does not allow outputs to be placed in subfolders, we must have
|
||||||
# meson.build here when generating the single file header so that it is placced
|
# meson.build here when generating the single file header so that it is placed
|
||||||
# in the correct location.
|
# in the correct location.
|
||||||
|
|
||||||
pymod = import('python')
|
pymod = import('python')
|
||||||
|
@ -795,7 +795,7 @@ TEST_CASE("THelp: longLineAlignment", "[help]") {
|
|||||||
int i{0};
|
int i{0};
|
||||||
|
|
||||||
app.add_option("-i,--int,--int_very_long_option_name_that_just_keeps_going_on_and_on_and_on_and_on_and_on_possibly_"
|
app.add_option("-i,--int,--int_very_long_option_name_that_just_keeps_going_on_and_on_and_on_and_on_and_on_possibly_"
|
||||||
"to_infitinty,--and_another_long_name_just_for_fun",
|
"to_infinity,--and_another_long_name_just_for_fun",
|
||||||
i,
|
i,
|
||||||
long_string);
|
long_string);
|
||||||
|
|
||||||
@ -820,7 +820,7 @@ TEST_CASE("THelp: longPositional", "[help]") {
|
|||||||
int i{0};
|
int i{0};
|
||||||
|
|
||||||
app.add_option("int_very_long_option_name_that_just_keeps_going_on_and_on_and_on_and_on_and_on_possibly_"
|
app.add_option("int_very_long_option_name_that_just_keeps_going_on_and_on_and_on_and_on_and_on_possibly_"
|
||||||
"to_infitinty",
|
"to_infinity",
|
||||||
i,
|
i,
|
||||||
long_string);
|
long_string);
|
||||||
|
|
||||||
|
@ -250,7 +250,7 @@ TEST_CASE("StringTools: Validation", "[helpers]") {
|
|||||||
CHECK_FALSE(CLI::detail::isalpha("test2"));
|
CHECK_FALSE(CLI::detail::isalpha("test2"));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("StringTools: binaryEscapseConversion", "[helpers]") {
|
TEST_CASE("StringTools: binaryEscapeConversion", "[helpers]") {
|
||||||
std::string testString("string1");
|
std::string testString("string1");
|
||||||
std::string estring = CLI::detail::binary_escape_string(testString);
|
std::string estring = CLI::detail::binary_escape_string(testString);
|
||||||
CHECK(testString == estring);
|
CHECK(testString == estring);
|
||||||
@ -285,7 +285,7 @@ TEST_CASE("StringTools: binaryEscapseConversion", "[helpers]") {
|
|||||||
CHECK(rstring == rstring2);
|
CHECK(rstring == rstring2);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("StringTools: binaryEscapseConversion2", "[helpers]") {
|
TEST_CASE("StringTools: binaryEscapeConversion2", "[helpers]") {
|
||||||
std::string testString;
|
std::string testString;
|
||||||
testString.push_back(0);
|
testString.push_back(0);
|
||||||
testString.push_back(0);
|
testString.push_back(0);
|
||||||
@ -1345,7 +1345,7 @@ TEST_CASE("Types: TypeNameStrings", "[helpers]") {
|
|||||||
auto wsclass = CLI::detail::classify_object<std::wstring>::value;
|
auto wsclass = CLI::detail::classify_object<std::wstring>::value;
|
||||||
CHECK(CLI::detail::object_category::wstring_assignable == wsclass);
|
CHECK(CLI::detail::object_category::wstring_assignable == wsclass);
|
||||||
|
|
||||||
#if defined CLI11_HAS_FILEYSTEM && CLI11_HAS_FILESYSTEM > 0 && defined(_MSC_VER)
|
#if defined CLI11_HAS_FILESYSTEM && CLI11_HAS_FILESYSTEM > 0 && defined(_MSC_VER)
|
||||||
auto fspclass = CLI::detail::classify_object<std::filesystem::path>::value;
|
auto fspclass = CLI::detail::classify_object<std::filesystem::path>::value;
|
||||||
CHECK(CLI::detail::object_category::wstring_assignable == fspclass);
|
CHECK(CLI::detail::object_category::wstring_assignable == fspclass);
|
||||||
#endif
|
#endif
|
||||||
|
@ -2091,7 +2091,7 @@ TEST_CASE_METHOD(TApp, "DotNotationSubcommandSingleChar", "[subcom]") {
|
|||||||
CHECK(subs.front()->get_name() == "sub2");
|
CHECK(subs.front()->get_name() == "sub2");
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE_METHOD(TApp, "DotNotationSubcommandRecusive", "[subcom]") {
|
TEST_CASE_METHOD(TApp, "DotNotationSubcommandRecursive", "[subcom]") {
|
||||||
std::string v1, v2, v3, vbase;
|
std::string v1, v2, v3, vbase;
|
||||||
|
|
||||||
auto *sub1 = app.add_subcommand("sub1");
|
auto *sub1 = app.add_subcommand("sub1");
|
||||||
@ -2119,7 +2119,7 @@ TEST_CASE_METHOD(TApp, "DotNotationSubcommandRecusive", "[subcom]") {
|
|||||||
CHECK(extras.front() == "--sub1.sub2.bob");
|
CHECK(extras.front() == "--sub1.sub2.bob");
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE_METHOD(TApp, "DotNotationSubcommandRecusive2", "[subcom]") {
|
TEST_CASE_METHOD(TApp, "DotNotationSubcommandRecursive2", "[subcom]") {
|
||||||
std::string v1, v2, v3, vbase;
|
std::string v1, v2, v3, vbase;
|
||||||
|
|
||||||
auto *sub1 = app.add_subcommand("sub1");
|
auto *sub1 = app.add_subcommand("sub1");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user