2011-08-02 4 views

답변

5

Boost.Program_Options에는 꽤 많은 수의 option styles이 있습니다. 당신이 보이는 특정 조합 수에 대한 것입니다 갈합니다 :

po::store(po::command_line_parser(argc, argv).style(<your styles here>).run(), vm); 
+3

이 처리 할 것 :

command_line_style::long_allow_adjacent | command_line_style::short_allow_adjacent | command_line_style::allow_long_disguise 

이 옵션은 명령 줄 파서의 style 기능을 부여해야한다 ':'옵션으로/값 구분 기호. 이를 위해서는 설명서의 "Howto"절의 첫 번째 항목 인 사용자 지정 파서가 필요합니다. –

+0

모두 감사합니다 !! –

관련 문제