MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / get_value_from_env

Method get_value_from_env

smallthinker/common/arg.cpp:96–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96bool common_arg::get_value_from_env(std::string & output) {
97 if (env == nullptr) return false;
98 char * value = std::getenv(env);
99 if (value) {
100 output = value;
101 return true;
102 }
103 return false;
104}
105
106bool common_arg::has_value_from_env() {
107 return env != nullptr && std::getenv(env);

Callers 1

common_params_parse_exFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected