Boost logo

Boost Users :

Subject: [Boost-users] [program_options]If a parameter in the command line contains white space, how to parse it ?
From: yaoyansi (yaoyansi2_at_[hidden])
Date: 2009-09-11 01:09:09


hi, all
i use boost::program_options to parse cmd line parameters.

Attachment has my code.

And here is my test:
 tst.exe --wav c:/Program Files/Microsoft/a.wav --words "Hi, how are you?" --d "so,\ may\ be."

 the output is :
wav:[c:/Program ]
words:["Hi, ]
d:["so,\ ]
--------------------------------------------------
But, I want the result to be :
wav:[c:/Program Files/Microsoft/a.wav ]

What should I do now?

Sorry for my poor English, And ,thanks in advance. ___________________________________________________________ ºÃÍæºØ¿¨µÈÄã·¢£¬ÓÊÏäºØ¿¨È«ÐÂÉÏÏߣ¡ http://card.mail.cn.yahoo.com/




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net