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

Function log_param_pair_parse

common/log.h:540–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540inline bool log_param_pair_parse(bool check_but_dont_parse, const std::string & param, const std::string & next = std::string())
541{
542 if ( param == "--log-file")
543 {
544 if (!check_but_dont_parse)
545 {
546 log_set_target(log_filename_generator(next.empty() ? "unnamed" : next, "log"));
547 }
548
549 return true;
550 }
551
552 return false;
553}
554
555inline void log_print_usage()
556{

Callers 1

gpt_params_parse_exFunction · 0.85

Calls 2

stringFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected