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

Method capture_default_str

simcore/framework/src/cli/cli.hpp:4361–4366  ·  view source on GitHub ↗

Capture the default value from the original value (if it can be captured)

Source from the content-addressed store, hash-verified

4359
4360 /// Capture the default value from the original value (if it can be captured)
4361 Option *capture_default_str() {
4362 if (default_function_) {
4363 default_str_ = default_function_();
4364 }
4365 return this;
4366 }
4367
4368 /// Set the default value string representation (does not change the contained value)
4369 Option *default_str(std::string val) {

Callers 2

add_optionMethod · 0.80
RootCmdMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected