MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / App

Method App

simcore/framework/src/cli/cli.hpp:4789–4819  ·  view source on GitHub ↗

Special private constructor for subcommand

Source from the content-addressed store, hash-verified

4787
4788 /// Special private constructor for subcommand
4789 App(std::string app_description, std::string app_name, App *parent)
4790 : name_(std::move(app_name)), description_(std::move(app_description)), parent_(parent) {
4791 // Inherit if not from a nullptr
4792 if (parent_ != nullptr) {
4793 if (parent_->help_ptr_ != nullptr)
4794 set_help_flag(parent_->help_ptr_->get_name(false, true), parent_->help_ptr_->get_description());
4795 if (parent_->help_all_ptr_ != nullptr)
4796 set_help_all_flag(parent_->help_all_ptr_->get_name(false, true), parent_->help_all_ptr_->get_description());
4797
4798 /// OptionDefaults
4799 option_defaults_ = parent_->option_defaults_;
4800
4801 // INHERITABLE
4802 failure_message_ = parent_->failure_message_;
4803 allow_extras_ = parent_->allow_extras_;
4804 allow_config_extras_ = parent_->allow_config_extras_;
4805 prefix_command_ = parent_->prefix_command_;
4806 immediate_callback_ = parent_->immediate_callback_;
4807 ignore_case_ = parent_->ignore_case_;
4808 ignore_underscore_ = parent_->ignore_underscore_;
4809 fallthrough_ = parent_->fallthrough_;
4810 validate_positionals_ = parent_->validate_positionals_;
4811 configurable_ = parent_->configurable_;
4812 allow_windows_style_options_ = parent_->allow_windows_style_options_;
4813 group_ = parent_->group_;
4814 footer_ = parent_->footer_;
4815 formatter_ = parent_->formatter_;
4816 config_formatter_ = parent_->config_formatter_;
4817 require_subcommand_max_ = parent_->require_subcommand_max_;
4818 }
4819 }
4820
4821 public:
4822 /// @name Basic

Callers

nothing calls this directly

Calls 2

get_nameMethod · 0.45
get_descriptionMethod · 0.45

Tested by

no test coverage detected