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

Function log_param_single_parse

common/log.h:505–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505inline bool log_param_single_parse(const std::string & param)
506{
507 if ( param == "--log-test")
508 {
509 log_test();
510 return true;
511 }
512
513 if ( param == "--log-disable")
514 {
515 log_disable();
516 return true;
517 }
518
519 if ( param == "--log-enable")
520 {
521 log_enable();
522 return true;
523 }
524
525 if (param == "--log-new")
526 {
527 log_multilog(true);
528 return true;
529 }
530
531 if (param == "--log-append")
532 {
533 log_append(true);
534 return true;
535 }
536
537 return false;
538}
539
540inline bool log_param_pair_parse(bool check_but_dont_parse, const std::string & param, const std::string & next = std::string())
541{

Callers 1

gpt_params_parse_exFunction · 0.85

Calls 1

log_testFunction · 0.85

Tested by

no test coverage detected