Lines Matching defs:args
90 static bool OnLogPath(std::vector<std::string> &args)
94 if (args.size() > 0) {
95 DebugLogger::GetInstance()->SetLogPath(args[0]);
96 args.erase(args.begin());
105 static bool OnLogTag(std::vector<std::string> &args)
109 if (args.size() > 0) {
110 DebugLogger::GetInstance()->SetLogTags(args[0]);
111 args.erase(args.begin());
120 static bool OnHiLog(const std::vector<std::string> &args)
128 Option::RegisterMainOption("--nodebug", "disable debug log, usage format: --nodebug [command] [args]",
130 Option::RegisterMainOption("--debug", "show debug log, usage format: --debug [command] [args]",
132 Option::RegisterMainOption("--verbose", "show debug log, usage format: --verbose [command] [args]",
134 Option::RegisterMainOption("--much", "show extremely much debug log, usage format: --much [command] [args]",
136 Option::RegisterMainOption("--mixlog", "mix the log in output, usage format: --much [command] [args]",
139 "log file name full path, usage format: --logpath [filepath] [command] [args]",
142 "enable log level for HILOG_TAG, usage format: --logtag <tag>[:level][,<tag>[:level]] [command] [args]\n", " ",
144 "example: hiperf --verbose --logtag Record:D [command] [args]");