Commit ebd238a9dba27de5ece2b3f92ed531d4d998e7ee
Committed by
Henry Schreiner
1 parent
94b3355b
Spelling fixes
Showing
2 changed files
with
13 additions
and
13 deletions
include/CLI/App.hpp
| ... | ... | @@ -66,7 +66,7 @@ class App { |
| 66 | 66 | /// If true, allow extra arguments (ie, don't throw an error). |
| 67 | 67 | bool allow_extras_{false}; |
| 68 | 68 | |
| 69 | - /// If true, return immediatly on an unrecognised option (implies allow_extras) | |
| 69 | + /// If true, return immediately on an unrecognised option (implies allow_extras) | |
| 70 | 70 | bool prefix_command_{false}; |
| 71 | 71 | |
| 72 | 72 | /// This is a function that runs when complete. Great for subcommands. Can throw. |
| ... | ... | @@ -93,7 +93,7 @@ class App { |
| 93 | 93 | /// This is faster and cleaner than storing just a list of strings and reparsing. This may contain the -- separator. |
| 94 | 94 | missing_t missing_; |
| 95 | 95 | |
| 96 | - /// This is a list of pointers to options with the orignal parse order | |
| 96 | + /// This is a list of pointers to options with the original parse order | |
| 97 | 97 | std::vector<Option *> parse_order_; |
| 98 | 98 | |
| 99 | 99 | ///@} |
| ... | ... | @@ -164,7 +164,7 @@ class App { |
| 164 | 164 | return this; |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | - /// Do not parse anything after the first unrecongnised option and return | |
| 167 | + /// Do not parse anything after the first unrecognised option and return | |
| 168 | 168 | App *prefix_command(bool allow = true) { |
| 169 | 169 | prefix_command_ = allow; |
| 170 | 170 | return this; |
| ... | ... | @@ -337,7 +337,7 @@ class App { |
| 337 | 337 | template <typename T, |
| 338 | 338 | enable_if_t<std::is_integral<T>::value && !is_bool<T>::value, detail::enabler> = detail::dummy> |
| 339 | 339 | Option *add_flag(std::string name, |
| 340 | - T &count, ///< A varaible holding the count | |
| 340 | + T &count, ///< A variable holding the count | |
| 341 | 341 | std::string description = "") { |
| 342 | 342 | |
| 343 | 343 | count = 0; |
| ... | ... | @@ -356,7 +356,7 @@ class App { |
| 356 | 356 | /// Bool version - defaults to allowing multiple passings, but can be forced to one if `take_last(false)` is used. |
| 357 | 357 | template <typename T, enable_if_t<is_bool<T>::value, detail::enabler> = detail::dummy> |
| 358 | 358 | Option *add_flag(std::string name, |
| 359 | - T &count, ///< A varaible holding true if passed | |
| 359 | + T &count, ///< A variable holding true if passed | |
| 360 | 360 | std::string description = "") { |
| 361 | 361 | |
| 362 | 362 | count = false; |
| ... | ... | @@ -404,7 +404,7 @@ class App { |
| 404 | 404 | template <typename T> |
| 405 | 405 | Option *add_set(std::string name, |
| 406 | 406 | T &member, ///< The selected member of the set |
| 407 | - std::set<T> options, ///< The set of posibilities | |
| 407 | + std::set<T> options, ///< The set of possibilities | |
| 408 | 408 | std::string description = "") { |
| 409 | 409 | |
| 410 | 410 | std::string simple_name = CLI::detail::split(name, ',').at(0); |
| ... | ... | @@ -459,7 +459,7 @@ class App { |
| 459 | 459 | /// Add set of options, string only, ignore case (no default) |
| 460 | 460 | Option *add_set_ignore_case(std::string name, |
| 461 | 461 | std::string &member, ///< The selected member of the set |
| 462 | - std::set<std::string> options, ///< The set of posibilities | |
| 462 | + std::set<std::string> options, ///< The set of possibilities | |
| 463 | 463 | std::string description = "") { |
| 464 | 464 | |
| 465 | 465 | std::string simple_name = CLI::detail::split(name, ',').at(0); |
| ... | ... | @@ -866,9 +866,9 @@ class App { |
| 866 | 866 | ///@} |
| 867 | 867 | |
| 868 | 868 | protected: |
| 869 | - /// Check the options to make sure there are no conficts. | |
| 869 | + /// Check the options to make sure there are no conflicts. | |
| 870 | 870 | /// |
| 871 | - /// Currenly checks to see if mutiple positionals exist with -1 args | |
| 871 | + /// Currently checks to see if multiple positionals exist with -1 args | |
| 872 | 872 | void _validate() const { |
| 873 | 873 | auto count = std::count_if(std::begin(options_), std::end(options_), [](const Option_p &opt) { |
| 874 | 874 | return opt->get_expected() == -1 && opt->get_positional(); |
| ... | ... | @@ -906,7 +906,7 @@ class App { |
| 906 | 906 | return false; |
| 907 | 907 | } |
| 908 | 908 | |
| 909 | - /// Selects a Classifer enum based on the type of the current argument | |
| 909 | + /// Selects a Classifier enum based on the type of the current argument | |
| 910 | 910 | detail::Classifer _recognize(const std::string ¤t) const { |
| 911 | 911 | std::string dummy1, dummy2; |
| 912 | 912 | |
| ... | ... | @@ -1031,10 +1031,10 @@ class App { |
| 1031 | 1031 | /// Parse one ini param, return false if not found in any subcommand, remove if it is |
| 1032 | 1032 | /// |
| 1033 | 1033 | /// If this has more than one dot.separated.name, go into the subcommand matching it |
| 1034 | - /// Returns true if it managed to find the option, if false you'll need to remove the arg manully. | |
| 1034 | + /// Returns true if it managed to find the option, if false you'll need to remove the arg manually. | |
| 1035 | 1035 | bool _parse_ini(std::vector<detail::ini_ret_t> &args) { |
| 1036 | 1036 | detail::ini_ret_t ¤t = args.back(); |
| 1037 | - std::string parent = current.parent(); // respects curent.level | |
| 1037 | + std::string parent = current.parent(); // respects current.level | |
| 1038 | 1038 | std::string name = current.name(); |
| 1039 | 1039 | |
| 1040 | 1040 | // If a parent is listed, go to a subcommand | ... | ... |
include/CLI/Option.hpp
| ... | ... | @@ -147,7 +147,7 @@ class Option { |
| 147 | 147 | return this; |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | - /// Support Plubmum term | |
| 150 | + /// Support Plumbum term | |
| 151 | 151 | Option *mandatory(bool value = true) { return required(value); } |
| 152 | 152 | |
| 153 | 153 | /// Set the number of expected arguments (Flags bypass this) | ... | ... |