diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index 753f5016..c8d09fbc 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -836,164 +836,6 @@ class App { return opt; } - /// Add set of options, string only, ignore case (no default, static set) DEPRECATED - CLI11_DEPRECATED("Use ->transform(CLI::IsMember(..., CLI::ignore_case)) instead") - Option *add_set_ignore_case(std::string option_name, - std::string &member, ///< The selected member of the set - std::set options, ///< The set of possibilities - std::string option_description = "") { - - Option *opt = add_option(option_name, member, std::move(option_description)); - opt->transform(IsMember{options, CLI::ignore_case}); - return opt; - } - - /// Add set of options, string only, ignore case (no default, set can be changed afterwards - do not destroy the - /// set) DEPRECATED - CLI11_DEPRECATED("Use ->transform(CLI::IsMember(..., CLI::ignore_case)) with a (shared) pointer instead") - Option *add_mutable_set_ignore_case(std::string option_name, - std::string &member, ///< The selected member of the set - const std::set &options, ///< The set of possibilities - std::string option_description = "") { - - Option *opt = add_option(option_name, member, std::move(option_description)); - opt->transform(IsMember{&options, CLI::ignore_case}); - return opt; - } - - /// Add set of options, string only, ignore case (default, static set) DEPRECATED - CLI11_DEPRECATED("Use ->transform(CLI::IsMember(..., CLI::ignore_case)) instead") - Option *add_set_ignore_case(std::string option_name, - std::string &member, ///< The selected member of the set - std::set options, ///< The set of possibilities - std::string option_description, - bool defaulted) { - - Option *opt = add_option(option_name, member, std::move(option_description), defaulted); - opt->transform(IsMember{options, CLI::ignore_case}); - return opt; - } - - /// Add set of options, string only, ignore case (default, set can be changed afterwards - do not destroy the - /// set) DEPRECATED - CLI11_DEPRECATED("Use ->transform(CLI::IsMember(...)) with a (shared) pointer instead") - Option *add_mutable_set_ignore_case(std::string option_name, - std::string &member, ///< The selected member of the set - const std::set &options, ///< The set of possibilities - std::string option_description, - bool defaulted) { - - Option *opt = add_option(option_name, member, std::move(option_description), defaulted); - opt->transform(IsMember{&options, CLI::ignore_case}); - return opt; - } - - /// Add set of options, string only, ignore underscore (no default, static set) DEPRECATED - CLI11_DEPRECATED("Use ->transform(CLI::IsMember(..., CLI::ignore_underscore)) instead") - Option *add_set_ignore_underscore(std::string option_name, - std::string &member, ///< The selected member of the set - std::set options, ///< The set of possibilities - std::string option_description = "") { - - Option *opt = add_option(option_name, member, std::move(option_description)); - opt->transform(IsMember{options, CLI::ignore_underscore}); - return opt; - } - - /// Add set of options, string only, ignore underscore (no default, set can be changed afterwards - do not - /// destroy the set) DEPRECATED - CLI11_DEPRECATED("Use ->transform(CLI::IsMember(..., CLI::ignore_underscore)) with a (shared) pointer instead") - Option *add_mutable_set_ignore_underscore(std::string option_name, - std::string &member, ///< The selected member of the set - const std::set &options, ///< The set of possibilities - std::string option_description = "") { - - Option *opt = add_option(option_name, member, std::move(option_description)); - opt->transform(IsMember{options, CLI::ignore_underscore}); - return opt; - } - - /// Add set of options, string only, ignore underscore (default, static set) DEPRECATED - CLI11_DEPRECATED("Use ->transform(CLI::IsMember(..., CLI::ignore_underscore)) instead") - Option *add_set_ignore_underscore(std::string option_name, - std::string &member, ///< The selected member of the set - std::set options, ///< The set of possibilities - std::string option_description, - bool defaulted) { - - Option *opt = add_option(option_name, member, std::move(option_description), defaulted); - opt->transform(IsMember{options, CLI::ignore_underscore}); - return opt; - } - - /// Add set of options, string only, ignore underscore (default, set can be changed afterwards - do not destroy - /// the set) DEPRECATED - CLI11_DEPRECATED("Use ->transform(CLI::IsMember(..., CLI::ignore_underscore)) with a (shared) pointer instead") - Option *add_mutable_set_ignore_underscore(std::string option_name, - std::string &member, ///< The selected member of the set - const std::set &options, ///< The set of possibilities - std::string option_description, - bool defaulted) { - - Option *opt = add_option(option_name, member, std::move(option_description), defaulted); - opt->transform(IsMember{&options, CLI::ignore_underscore}); - return opt; - } - - /// Add set of options, string only, ignore underscore and case (no default, static set) DEPRECATED - CLI11_DEPRECATED("Use ->transform(CLI::IsMember(..., CLI::ignore_case, CLI::ignore_underscore)) instead") - Option *add_set_ignore_case_underscore(std::string option_name, - std::string &member, ///< The selected member of the set - std::set options, ///< The set of possibilities - std::string option_description = "") { - - Option *opt = add_option(option_name, member, std::move(option_description)); - opt->transform(IsMember{options, CLI::ignore_underscore, CLI::ignore_case}); - return opt; - } - - /// Add set of options, string only, ignore underscore and case (no default, set can be changed afterwards - do - /// not destroy the set) DEPRECATED - CLI11_DEPRECATED("Use ->transform(CLI::IsMember(..., CLI::ignore_case, CLI::ignore_underscore)) with a " - "(shared) pointer instead") - Option *add_mutable_set_ignore_case_underscore(std::string option_name, - std::string &member, ///< The selected member of the set - const std::set &options, ///< The set of possibilities - std::string option_description = "") { - - Option *opt = add_option(option_name, member, std::move(option_description)); - opt->transform(IsMember{&options, CLI::ignore_underscore, CLI::ignore_case}); - return opt; - } - - /// Add set of options, string only, ignore underscore and case (default, static set) DEPRECATED - CLI11_DEPRECATED("Use ->transform(CLI::IsMember(..., CLI::ignore_case, CLI::ignore_underscore)) instead") - Option *add_set_ignore_case_underscore(std::string option_name, - std::string &member, ///< The selected member of the set - std::set options, ///< The set of possibilities - std::string option_description, - bool defaulted) { - - Option *opt = add_option(option_name, member, std::move(option_description), defaulted); - opt->transform(IsMember{options, CLI::ignore_underscore, CLI::ignore_case}); - return opt; - } - - /// Add set of options, string only, ignore underscore and case (default, set can be changed afterwards - do not - /// destroy the set) DEPRECATED - CLI11_DEPRECATED("Use ->transform(CLI::IsMember(..., CLI::ignore_case, CLI::ignore_underscore)) with a " - "(shared) pointer instead") - Option *add_mutable_set_ignore_case_underscore(std::string option_name, - std::string &member, ///< The selected member of the set - const std::set &options, ///< The set of possibilities - std::string option_description, - bool defaulted) { - - Option *opt = add_option(option_name, member, std::move(option_description), defaulted); - opt->transform(IsMember{&options, CLI::ignore_underscore, CLI::ignore_case}); - return opt; - } - /// Add a complex number template Option *add_complex(std::string option_name, diff --git a/include/CLI/Option.hpp b/include/CLI/Option.hpp index e3403d8c..18460590 100644 --- a/include/CLI/Option.hpp +++ b/include/CLI/Option.hpp @@ -652,10 +652,6 @@ class Option : public OptionBase