一、 功能介绍
webrtc中命令行参数解析功能由rtc_base/flags.h
中的Flag
类和FlagList
类提供。使用起来比较简单,支持参数中含有空格等。可以看成google开源的gflags的轻量版.
支持的命令行语法为:
The following syntax for flags is accepted (both '-' and '--' are ok):
--flag (bool flags only)
--noflag (bool flags only)
--flag=value (non-bool flags only, no spaces around '=')
--flag value (non-bool flags only)