有没有办法为参数设置一组允许的输入变量?例如,参数"arg"只能包含像"cat"和"dog"这样的字符串值.
c++ boost-program-options
boost-program-options ×1
c++ ×1